[gtk+] Replaced deprecated call to gtk_action_connect_proxy with call to gtk_activatable_set_related_action



commit ac9ea01ec95dc44ac9d0fcc03c5d1c9148b9bd6a
Author: Tobias Mueller <tobiasmue gnome org>
Date:   Fri May 8 16:40:41 2009 +0200

    Replaced deprecated call to gtk_action_connect_proxy with call to gtk_activatable_set_related_action
    
    Fixes bug 581876.
---
 tests/testmerge.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/tests/testmerge.c b/tests/testmerge.c
index 125fba5..a9b1222 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 ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]