[gnome-panel/wip/segeiger/panel-add-to-dialog: 3/3] panel-addto-dialog: Use g_signal_connect_object
- From: Sebastian Geiger <segeiger src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/wip/segeiger/panel-add-to-dialog: 3/3] panel-addto-dialog: Use g_signal_connect_object
- Date: Fri, 17 Jul 2015 17:16:59 +0000 (UTC)
commit 250a053d575316e62074fd7c5e28608cda8a236a
Author: Sebastian Geiger <sbastig gmx net>
Date: Fri Jul 17 00:16:05 2015 +0200
panel-addto-dialog: Use g_signal_connect_object
gnome-panel/panel-addto-dialog.c | 19 ++++++-------------
1 files changed, 6 insertions(+), 13 deletions(-)
---
diff --git a/gnome-panel/panel-addto-dialog.c b/gnome-panel/panel-addto-dialog.c
index 5729e4d..1920749 100644
--- a/gnome-panel/panel-addto-dialog.c
+++ b/gnome-panel/panel-addto-dialog.c
@@ -75,8 +75,6 @@ struct _PanelAddtoDialog
gchar *search_text;
gchar *applet_search_text;
- guint name_notify;
-
PanelObjectPackType insert_pack_type;
};
@@ -1158,11 +1156,12 @@ panel_addto_dialog_new (PanelWidget *panel_widget)
dialog);
dialog->panel_widget = panel_widget;
- dialog->name_notify =
- g_signal_connect (dialog->panel_widget->toplevel,
- "notify::name",
- G_CALLBACK (panel_addto_name_notify),
- dialog);
+
+ g_signal_connect_object (dialog->panel_widget->toplevel,
+ "notify::name",
+ G_CALLBACK (panel_addto_name_notify),
+ dialog,
+ 0);
gtk_widget_show_all (dialog->dialog_vbox);
@@ -1202,12 +1201,6 @@ panel_addto_dialog_dispose (GObject *object)
dialog = PANEL_ADDTO_DIALOG (object);
- if (dialog->name_notify)
- g_signal_handler_disconnect (dialog->panel_widget->toplevel,
- dialog->name_notify);
-
- dialog->name_notify = 0;
-
g_clear_object (&dialog->filter_applet_model);
g_clear_object (&dialog->applet_model);
g_clear_object (&dialog->filter_application_model);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]