[gnome-panel] panel: Fix warning when closing addto dialog



commit 9addabe6b8b3a017b76f08843f618861410a0f6d
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]