Use gtk_activatable_set_related_action() instead of deprecated

gtk_action_connect_proxy()
This commit is contained in:
Manish Singh 2009-05-24 10:38:09 -07:00
parent ef8dabcc7f
commit 7d76f25e26
3 changed files with 5 additions and 4 deletions

View File

@ -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);

View File

@ -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)
{

View File

@ -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);