[gtk+/gtk-3-14] GtkDialog: Connect to activate signals only once
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-14] GtkDialog: Connect to activate signals only once
- Date: Mon, 17 Nov 2014 18:20:19 +0000 (UTC)
commit 9cab6be752a4be5a29bee0409a509fba81479597
Author: Timm Bäder <mail baedert org>
Date: Sun Nov 16 10:29:15 2014 +0100
GtkDialog: Connect to activate signals only once
If the widget is an action widget, it's been previously added with
gtk_dialog_add_action_widget, which calls add_response_data on it, which
in turn connects to the clicked/activate signal of that widget, so we
don't need to connect to that signal a second time in
gtk_buildable_custom_finished.
gtk/gtkdialog.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c
index b1ae4c2..b02c604 100644
--- a/gtk/gtkdialog.c
+++ b/gtk/gtkdialog.c
@@ -1840,7 +1840,7 @@ gtk_dialog_buildable_custom_finished (GtkBuildable *buildable,
else
signal_id = GTK_WIDGET_GET_CLASS (object)->activate_signal;
- if (signal_id)
+ if (signal_id && !is_action)
{
GClosure *closure;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]