diff options
author | Timm Bäder <mail@baedert.org> | 2014-11-16 10:29:15 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2014-11-17 18:37:47 +0100 |
commit | 56133a1feb162ad891eca58d8c6169d83b74448d (patch) | |
tree | c8328ed508a12373286f89ed0c8aec7f96fbd125 | |
parent | 17f48e3a9e3623df2feb76dd209fe80b94b8b5c1 (diff) | |
download | gtk+-56133a1feb162ad891eca58d8c6169d83b74448d.tar.gz |
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.
-rw-r--r-- | gtk/gtkdialog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c index b1ae4c215c..b02c6048c1 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; |