[gnome-panel/wip/3.0-freeze-break] panel: Fix warning when closing addto dialog
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/wip/3.0-freeze-break] panel: Fix warning when closing addto dialog
- Date: Fri, 25 Mar 2011 18:38:28 +0000 (UTC)
commit bbd50f2eb2d29dacb37c16c61779d264b088bbf6
Author: Vincent Untz <vuntz gnome org>
Date: Fri Mar 25 19:24:28 2011 +0100
panel: Fix warning when closing addto dialog
We were removing a signal id from the wrong object.
gnome-panel/panel-addto.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/gnome-panel/panel-addto.c b/gnome-panel/panel-addto.c
index 050c110..06e311a 100644
--- a/gnome-panel/panel-addto.c
+++ b/gnome-panel/panel-addto.c
@@ -958,13 +958,11 @@ panel_addto_dialog_free_application_list (GSList *application_list)
static void
panel_addto_dialog_free (PanelAddtoDialog *dialog)
{
- GConfClient *client;
- GSList *item;
-
- client = panel_gconf_get_client ();
+ GSList *item;
if (dialog->name_notify)
- g_signal_handler_disconnect (client, dialog->name_notify);
+ g_signal_handler_disconnect (dialog->panel_widget->toplevel,
+ dialog->name_notify);
dialog->name_notify = 0;
if (dialog->search_text)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]