summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/point.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-06-16 16:17:27 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-06-16 16:17:27 +0000
commit34ac54244271a679a72da82b1a5ff62be1d3c58f (patch)
tree6252b2888747e98c4efcf905f2d9e34640cba2d1 /src/live_effects/parameter/point.cpp
parentTemporarily add shortcuts in pen context to activate some LPEs which need pat... (diff)
downloadinkscape-34ac54244271a679a72da82b1a5ff62be1d3c58f.tar.gz
inkscape-34ac54244271a679a72da82b1a5ff62be1d3c58f.zip
Activate automatic knotholders for LPE PointParams
(bzr r5963)
Diffstat (limited to 'src/live_effects/parameter/point.cpp')
-rw-r--r--src/live_effects/parameter/point.cpp20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/live_effects/parameter/point.cpp b/src/live_effects/parameter/point.cpp
index 502af1f23..be8415d8d 100644
--- a/src/live_effects/parameter/point.cpp
+++ b/src/live_effects/parameter/point.cpp
@@ -100,7 +100,6 @@ PointParam::param_newWidget(Gtk::Tooltips * tooltips)
pIcon->show();
pButton->add(*pIcon);
pButton->show();
- pButton->signal_clicked().connect(sigc::mem_fun(*this, &PointParam::on_button_click));
Gtk::HBox * hbox = Gtk::manage( new Gtk::HBox() );
static_cast<Gtk::HBox*>(hbox)->pack_start(*pButton, true, true);
@@ -165,35 +164,20 @@ PointParam::set_oncanvas_looks(SPKnotShapeType shape, SPKnotModeType mode, guint
void
PointParam::knot_set(NR::Point const &p, NR::Point const &origin, guint state)
{
- g_print ("PointParam::knot_set() was called!\n");
param_setValue(p.to_2geom());
+ sp_lpe_item_update_patheffect(SP_LPE_ITEM(item), false, false);
}
NR::Point
PointParam::knot_get()
{
- g_print ("PointParam::knot_get() was called.\n");
- g_print ("We return (%f, %f)\n", (*this)[0], (*this)[1]);
return *this;
}
void
PointParam::knot_click(guint state)
{
- g_print ("PointParam::knot_click() was called!\n");
-}
-
-// CALLBACKS:
-
-void
-PointParam::on_button_click()
-{
- g_print ("PointParam::on_button_click()\n");
- SPDesktop *desktop = SP_ACTIVE_DESKTOP;
- SPItem * item = sp_desktop_selection(desktop)->singleItem();
- if (item != NULL) {
- param_editOncanvas(item, desktop);
- }
+ g_print ("This is the handle associated to the parameter '%s'\n", param_key.c_str());
}
} /* namespace LivePathEffect */