From: johanengelen Date: Sat, 26 Jan 2008 01:52:18 +0000 (+0000) Subject: fix initialization of lpe params X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b5c827e288e4b88df2ddfeb6bce119a17338d669;p=inkscape.git fix initialization of lpe params --- diff --git a/src/live_effects/parameter/bool.cpp b/src/live_effects/parameter/bool.cpp index 383dc8186..f0eb84e5f 100644 --- a/src/live_effects/parameter/bool.cpp +++ b/src/live_effects/parameter/bool.cpp @@ -67,6 +67,7 @@ BoolParam::param_newWidget(Gtk::Tooltips * tooltips) param_effect->getSPDoc()) ); checkwdg->setActive(value); + checkwdg->setProgrammatically = false; checkwdg->set_undo_parameters(SP_VERB_DIALOG_LIVE_PATH_EFFECT, _("Change bool parameter")); return dynamic_cast (checkwdg); diff --git a/src/live_effects/parameter/enum.h b/src/live_effects/parameter/enum.h index 1778af8f1..a0174f858 100644 --- a/src/live_effects/parameter/enum.h +++ b/src/live_effects/parameter/enum.h @@ -40,13 +40,14 @@ public: virtual ~EnumParam() { }; - virtual Gtk::Widget * param_newWidget(Gtk::Tooltips * tooltips) { + virtual Gtk::Widget * param_newWidget(Gtk::Tooltips * /*tooltips*/) { Inkscape::UI::Widget::RegisteredEnum *regenum = Gtk::manage ( new Inkscape::UI::Widget::RegisteredEnum( param_label, param_tooltip, param_key, *enumdataconv, *param_wr, param_effect->getRepr(), param_effect->getSPDoc() ) ); regenum->set_active_by_id(value); - regenum->set_undo_parameters(SP_VERB_DIALOG_LIVE_PATH_EFFECT, _("Change enum parameter")); + regenum->combobox()->setProgrammatically = false; + regenum->set_undo_parameters(SP_VERB_DIALOG_LIVE_PATH_EFFECT, _("Change enumeration parameter")); return dynamic_cast (regenum); }; diff --git a/src/live_effects/parameter/parameter.cpp b/src/live_effects/parameter/parameter.cpp index 67111ef9e..a0ce04487 100644 --- a/src/live_effects/parameter/parameter.cpp +++ b/src/live_effects/parameter/parameter.cpp @@ -133,6 +133,7 @@ ScalarParam::param_newWidget(Gtk::Tooltips * tooltips) rsu->setDigits(digits); rsu->setIncrements(inc_step, inc_page); rsu->setRange(min, max); + rsu->setProgrammatically = false; rsu->set_undo_parameters(SP_VERB_DIALOG_LIVE_PATH_EFFECT, _("Change scalar parameter")); diff --git a/src/live_effects/parameter/random.cpp b/src/live_effects/parameter/random.cpp index 850bb1a75..26f1868a9 100644 --- a/src/live_effects/parameter/random.cpp +++ b/src/live_effects/parameter/random.cpp @@ -132,6 +132,7 @@ RandomParam::param_newWidget(Gtk::Tooltips * tooltips) regrandom->setIncrements(1, 10); } regrandom->setRange(min, max); + regrandom->setProgrammatically = false; regrandom->set_undo_parameters(SP_VERB_DIALOG_LIVE_PATH_EFFECT, _("Change random parameter"));