summaryrefslogtreecommitdiff
path: root/tests/testmerge.c
diff options
context:
space:
mode:
authorTobias Mueller <tobiasmue@gnome.org>2009-05-08 16:40:41 +0200
committerTobias Mueller <tobiasmue@gnome.org>2009-05-11 13:52:16 +0200
commitac9ea01ec95dc44ac9d0fcc03c5d1c9148b9bd6a (patch)
treebb23d64b7140601bcfb3a652f07ad6c0305a27d0 /tests/testmerge.c
parentae94c371d186715ae78d97687b28ff78c5489673 (diff)
downloadgtk+-ac9ea01ec95dc44ac9d0fcc03c5d1c9148b9bd6a.tar.gz
Replaced deprecated call to gtk_action_connect_proxy with call to gtk_activatable_set_related_action
Fixes bug 581876.
Diffstat (limited to 'tests/testmerge.c')
-rw-r--r--tests/testmerge.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/testmerge.c b/tests/testmerge.c
index 125fba5257..a9b1222d25 100644
--- a/tests/testmerge.c
+++ b/tests/testmerge.c
@@ -641,14 +641,15 @@ main (int argc, char **argv)
button = gtk_button_new ();
gtk_box_pack_end (GTK_BOX (menu_box), button, FALSE, FALSE, 0);
- gtk_action_connect_proxy (gtk_action_group_get_action (action_group, "AboutAction"),
- button);
+ gtk_activatable_set_related_action (GTK_ACTIVATABLE (button),
+ gtk_action_group_get_action (action_group, "AboutAction"));
+
gtk_widget_show (button);
button = gtk_check_button_new ();
gtk_box_pack_end (GTK_BOX (menu_box), button, FALSE, FALSE, 0);
- gtk_action_connect_proxy (gtk_action_group_get_action (action_group, "BoldAction"),
- button);
+ gtk_activatable_set_related_action (GTK_ACTIVATABLE (button),
+ gtk_action_group_get_action (action_group, "BoldAction"));
gtk_widget_show (button);
merge = gtk_ui_manager_new ();