diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2011-12-30 11:07:00 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2011-12-30 11:07:00 +0000 |
| commit | e3aab9fd7b01e4660ee553d364c524de5dd78cc4 (patch) | |
| tree | 96a363caccd56ffc53d8f532992f0fb49e8b05d7 /src/dialogs/item-properties.cpp | |
| parent | Item properties dialog: fix wasting resources when moving objects (diff) | |
| download | inkscape-e3aab9fd7b01e4660ee553d364c524de5dd78cc4.tar.gz inkscape-e3aab9fd7b01e4660ee553d364c524de5dd78cc4.zip | |
Item properties dialog: fix signal connection
(bzr r10807)
Diffstat (limited to 'src/dialogs/item-properties.cpp')
| -rw-r--r-- | src/dialogs/item-properties.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/dialogs/item-properties.cpp b/src/dialogs/item-properties.cpp index 55c292900..1073d1b43 100644 --- a/src/dialogs/item-properties.cpp +++ b/src/dialogs/item-properties.cpp @@ -153,8 +153,6 @@ SPItemDialog::SPItemDialog (void) : SPItemDialog::~SPItemDialog (void) { - //TODO: can we disconnect the "modify_selection", "change_selection", and "set_selection" - // from their callbacks set in make_widget? if (closing) { return; @@ -186,9 +184,9 @@ SPItemDialog::~SPItemDialog (void) void SPItemDialog::MakeWidget(void) { // if (gtk_widget_get_visible (GTK_WIDGET(spw))) { - g_signal_connect (G_OBJECT (INKSCAPE), "modify_selection", G_CALLBACK (sp_item_widget_modify_selection), this); - g_signal_connect (G_OBJECT (INKSCAPE), "change_selection", G_CALLBACK (sp_item_widget_change_selection), this); - g_signal_connect (G_OBJECT (INKSCAPE), "set_selection", G_CALLBACK (sp_item_widget_change_selection), this); + g_signal_connect (G_OBJECT (INKSCAPE), "modify_selection", G_CALLBACK (sp_item_widget_modify_selection), wd.win); + g_signal_connect (G_OBJECT (INKSCAPE), "change_selection", G_CALLBACK (sp_item_widget_change_selection), wd.win); + g_signal_connect (G_OBJECT (INKSCAPE), "set_selection", G_CALLBACK (sp_item_widget_change_selection), wd.win); // } window->add(vb); |
