mirror of https://github.com/GNOME/gimp.git
Use gtk_activatable_set_related_action() instead of deprecated
gtk_action_connect_proxy()
This commit is contained in:
parent
ef8dabcc7f
commit
7d76f25e26
|
@ -664,7 +664,7 @@ gimp_editor_add_action_button (GimpEditor *editor,
|
|||
|
||||
g_free (stock_id);
|
||||
|
||||
gtk_action_connect_proxy (action, button);
|
||||
gtk_activatable_set_related_action (GTK_ACTIVATABLE (button), action);
|
||||
gtk_box_pack_start (GTK_BOX (editor->button_box), button, TRUE, TRUE, 0);
|
||||
gtk_widget_show (button);
|
||||
|
||||
|
|
|
@ -911,7 +911,8 @@ static void
|
|||
gimp_ui_manager_menu_item_select (GtkWidget *widget,
|
||||
GimpUIManager *manager)
|
||||
{
|
||||
GtkAction *action = gtk_widget_get_action (widget);
|
||||
GtkAction *action =
|
||||
gtk_activatable_get_related_action (GTK_ACTIVATABLE (widget));
|
||||
|
||||
if (action)
|
||||
{
|
||||
|
|
|
@ -210,7 +210,7 @@ browser_dialog_open (const gchar *plug_in_binary)
|
|||
|
||||
action = gtk_ui_manager_get_action (ui_manager,
|
||||
"/ui/help-browser-popup/forward");
|
||||
gtk_action_connect_proxy (action, GTK_WIDGET (item));
|
||||
gtk_activatable_set_related_action (GTK_ACTIVATABLE (item), action);
|
||||
g_object_notify (G_OBJECT (action), "tooltip");
|
||||
button_next = GTK_WIDGET (item);
|
||||
|
||||
|
@ -220,7 +220,7 @@ browser_dialog_open (const gchar *plug_in_binary)
|
|||
|
||||
action = gtk_ui_manager_get_action (ui_manager,
|
||||
"/ui/help-browser-popup/back");
|
||||
gtk_action_connect_proxy (action, GTK_WIDGET (item));
|
||||
gtk_activatable_set_related_action (GTK_ACTIVATABLE (item), action);
|
||||
g_object_notify (G_OBJECT (action), "tooltip");
|
||||
button_prev = GTK_WIDGET (item);
|
||||
|
||||
|
|
Loading…
Reference in New Issue