summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-01-20 06:10:22 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-01-20 06:10:22 +0000
commit9c68d1b8609e4e2abc87bbb37b2258e2e2e8f046 (patch)
treef2e34b48ac72a7f3e3d4748c2f0517292ed3e755 /src
parentUpdated Vietnamese translation (diff)
downloadinkscape-9c68d1b8609e4e2abc87bbb37b2258e2e2e8f046.tar.gz
inkscape-9c68d1b8609e4e2abc87bbb37b2258e2e2e8f046.zip
don't update LPE dialog when selection is modified. try 2
(bzr r4566)
Diffstat (limited to 'src')
-rw-r--r--src/ui/dialog/livepatheffect-editor.cpp42
-rw-r--r--src/ui/dialog/livepatheffect-editor.h3
2 files changed, 14 insertions, 31 deletions
diff --git a/src/ui/dialog/livepatheffect-editor.cpp b/src/ui/dialog/livepatheffect-editor.cpp
index 3956f0140..8d5b504f0 100644
--- a/src/ui/dialog/livepatheffect-editor.cpp
+++ b/src/ui/dialog/livepatheffect-editor.cpp
@@ -46,11 +46,6 @@ static void lpeeditor_selection_changed (Inkscape::Selection * selection, gpoint
lpeeditor->onSelectionChanged(selection);
}
-static void lpeeditor_selection_modified( Inkscape::Selection *selection, guint /*flags*/, gpointer data )
-{
- lpeeditor_selection_changed (selection, data);
-}
-
/*#######################
* LivePathEffectEditor
@@ -65,8 +60,7 @@ LivePathEffectEditor::LivePathEffectEditor()
explain_label("", Gtk::ALIGN_CENTER),
effectapplication_frame(_("Apply new effect")),
effectcontrol_frame(_("Current effect")),
- current_desktop(NULL),
- currect_effect(NULL)
+ current_desktop(NULL)
{
Gtk::Box *contents = _getContents();
contents->set_spacing(4);
@@ -104,32 +98,27 @@ LivePathEffectEditor::~LivePathEffectEditor()
if (current_desktop) {
selection_changed_connection.disconnect();
- selection_modified_connection.disconnect();
}
}
void
LivePathEffectEditor::showParams(LivePathEffect::Effect* effect)
{
- if (currect_effect != effect) {
- currect_effect = effect;
-
- if (effectwidget) {
- effectcontrol_vbox.remove(*effectwidget);
- delete effectwidget;
- effectwidget = NULL;
- }
-
- 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: add 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
@@ -200,7 +189,6 @@ LivePathEffectEditor::setDesktop(SPDesktop *desktop)
if (current_desktop) {
selection_changed_connection.disconnect();
- selection_modified_connection.disconnect();
}
current_desktop = desktop;
@@ -208,8 +196,6 @@ LivePathEffectEditor::setDesktop(SPDesktop *desktop)
Inkscape::Selection *selection = sp_desktop_selection(desktop);
selection_changed_connection = selection->connectChanged(
sigc::bind (sigc::ptr_fun(&lpeeditor_selection_changed), this ) );
- selection_modified_connection = selection->connectModified(
- sigc::bind (sigc::ptr_fun(&lpeeditor_selection_modified), this ) );
onSelectionChanged(selection);
} else {
diff --git a/src/ui/dialog/livepatheffect-editor.h b/src/ui/dialog/livepatheffect-editor.h
index 4f635ad51..dc96fc313 100644
--- a/src/ui/dialog/livepatheffect-editor.h
+++ b/src/ui/dialog/livepatheffect-editor.h
@@ -41,7 +41,6 @@ public:
private:
sigc::connection selection_changed_connection;
- sigc::connection selection_modified_connection;
void set_sensitize_all(bool sensitive);
@@ -65,8 +64,6 @@ private:
SPDesktop * current_desktop;
- LivePathEffect::Effect* currect_effect;
-
LivePathEffectEditor(LivePathEffectEditor const &d);
LivePathEffectEditor& operator=(LivePathEffectEditor const &d);
};