From 0b8c1be8fec73b0ce317e9afa5ca6aa35a3b2545 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Thu, 20 Mar 2008 23:12:59 +0000 Subject: [PATCH] remove #ifdef that was used to disable on-canvas editing. fix initialization of PointParam --- src/live_effects/parameter/point.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/live_effects/parameter/point.cpp b/src/live_effects/parameter/point.cpp index 841d11d27..93922de95 100644 --- a/src/live_effects/parameter/point.cpp +++ b/src/live_effects/parameter/point.cpp @@ -25,8 +25,6 @@ #include "desktop.h" #include "selection.h" -#define LPEPOINTPARAM_DEBUG // undefine to disable all on-canvas editing code for PointParam - namespace Inkscape { namespace LivePathEffect { @@ -36,9 +34,11 @@ PointParam::PointParam( const Glib::ustring& label, const Glib::ustring& tip, Effect* effect, Geom::Point default_value ) : Geom::Point(default_value), Parameter(label, tip, key, wr, effect), defvalue(default_value) { -#ifdef LPEPOINTPARAM_DEBUG oncanvas_editable = true; -#endif + + knot_shape = SP_KNOT_SHAPE_SQUARE; + knot_mode = SP_KNOT_MODE_XOR; + knot_color = 0x00ff0000; } PointParam::~PointParam() @@ -96,9 +96,6 @@ PointParam::param_newWidget(Gtk::Tooltips * tooltips) pButton->add(*pIcon); pButton->show(); pButton->signal_clicked().connect(sigc::mem_fun(*this, &PointParam::on_button_click)); -#ifndef LPEPOINTPARAM_DEBUG - pButton->set_sensitive(false); -#endif Gtk::HBox * hbox = Gtk::manage( new Gtk::HBox() ); static_cast(hbox)->pack_start(*pButton, true, true); -- 2.30.2