summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 69113aa)
raw | patch | inline | side by side (parent: 69113aa)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Thu, 20 Mar 2008 23:12:59 +0000 (23:12 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Thu, 20 Mar 2008 23:12:59 +0000 (23:12 +0000) |
fix initialization of PointParam
src/live_effects/parameter/point.cpp | patch | blob | history |
index 841d11d270e17a2cb9c066b489ea8f98040eedb8..93922de952716a17f82d253823d3e70d83071982 100644 (file)
#include "desktop.h"
#include "selection.h"
-#define LPEPOINTPARAM_DEBUG // undefine to disable all on-canvas editing code for PointParam
-
namespace Inkscape {
namespace LivePathEffect {
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()
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<Gtk::HBox*>(hbox)->pack_start(*pButton, true, true);