summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-01-20 05:11:53 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-01-20 05:11:53 +0000
commit157fa806e942c47b53b8aa9de201e6a9e8849be2 (patch)
treebf6a690891fbff5577c76ed4c1907c13da01d6fd
parentMake creation of dots via Ctrl+click also possible in pen context; fill dots ... (diff)
downloadinkscape-157fa806e942c47b53b8aa9de201e6a9e8849be2.tar.gz
inkscape-157fa806e942c47b53b8aa9de201e6a9e8849be2.zip
don't update LPE dialog when selection is modified.
(bzr r4564)
-rw-r--r--src/ui/dialog/livepatheffect-editor.cpp33
-rw-r--r--src/ui/dialog/livepatheffect-editor.h2
2 files changed, 21 insertions, 14 deletions
diff --git a/src/ui/dialog/livepatheffect-editor.cpp b/src/ui/dialog/livepatheffect-editor.cpp
index 93e17c324..3956f0140 100644
--- a/src/ui/dialog/livepatheffect-editor.cpp
+++ b/src/ui/dialog/livepatheffect-editor.cpp
@@ -65,7 +65,8 @@ LivePathEffectEditor::LivePathEffectEditor()
explain_label("", Gtk::ALIGN_CENTER),
effectapplication_frame(_("Apply new effect")),
effectcontrol_frame(_("Current effect")),
- current_desktop(NULL)
+ current_desktop(NULL),
+ currect_effect(NULL)
{
Gtk::Box *contents = _getContents();
contents->set_spacing(4);
@@ -110,21 +111,25 @@ LivePathEffectEditor::~LivePathEffectEditor()
void
LivePathEffectEditor::showParams(LivePathEffect::Effect* effect)
{
- if (effectwidget) {
- effectcontrol_vbox.remove(*effectwidget);
- delete effectwidget;
- effectwidget = NULL;
- }
+ if (currect_effect != effect) {
+ currect_effect = effect;
- explain_label.set_markup("<b>" + effect->getName() + "</b>");
- effectwidget = effect->newWidget(&tooltips);
- if (effectwidget) {
- effectcontrol_vbox.pack_start(*effectwidget, true, true);
- }
- button_remove.show();
+ if (effectwidget) {
+ effectcontrol_vbox.remove(*effectwidget);
+ delete effectwidget;
+ effectwidget = NULL;
+ }
- effectcontrol_vbox.show_all_children();
- // fixme: do resizing of dialog
+ explain_label.set_markup("<b>" + effect->getName() + "</b>");
+ effectwidget = effect->newWidget(&tooltips);
+ if (effectwidget) {
+ effectcontrol_vbox.pack_start(*effectwidget, true, true);
+ }
+ button_remove.show();
+
+ effectcontrol_vbox.show_all_children();
+ // fixme: add resizing of dialog
+ }
}
void
diff --git a/src/ui/dialog/livepatheffect-editor.h b/src/ui/dialog/livepatheffect-editor.h
index dc852dd7f..4f635ad51 100644
--- a/src/ui/dialog/livepatheffect-editor.h
+++ b/src/ui/dialog/livepatheffect-editor.h
@@ -65,6 +65,8 @@ private:
SPDesktop * current_desktop;
+ LivePathEffect::Effect* currect_effect;
+
LivePathEffectEditor(LivePathEffectEditor const &d);
LivePathEffectEditor& operator=(LivePathEffectEditor const &d);
};