Replaced deprecated call to gtk_action_connect_proxy with call to gtk_activatable_set_related_action
Fixes bug 581876.
This commit is contained in:
parent
ae94c371d1
commit
ac9ea01ec9
1 changed files with 5 additions and 4 deletions
|
|
@ -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 ();
|
||||
|
|
|
|||
Loading…
Reference in a new issue