[gimp] Use gtk_activatable_set_related_action() instead of deprecated
- From: Manish Singh <yosh src gnome org>
- To: svn-commits-list gnome org
- Subject: [gimp] Use gtk_activatable_set_related_action() instead of deprecated
- Date: Sun, 24 May 2009 13:45:18 -0400 (EDT)
commit 7d76f25e260d84452e6af4393d16c2e3725cf7cb
Author: Manish Singh <yosh gimp org>
Date: Sun May 24 10:38:09 2009 -0700
Use gtk_activatable_set_related_action() instead of deprecated
gtk_action_connect_proxy()
---
app/widgets/gimpeditor.c | 2 +-
app/widgets/gimpuimanager.c | 3 ++-
plug-ins/help-browser/dialog.c | 4 ++--
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/app/widgets/gimpeditor.c b/app/widgets/gimpeditor.c
index 40ee0d5..2dc3bda 100644
--- a/app/widgets/gimpeditor.c
+++ b/app/widgets/gimpeditor.c
@@ -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);
diff --git a/app/widgets/gimpuimanager.c b/app/widgets/gimpuimanager.c
index 3bb5adb..6a2661f 100644
--- a/app/widgets/gimpuimanager.c
+++ b/app/widgets/gimpuimanager.c
@@ -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)
{
diff --git a/plug-ins/help-browser/dialog.c b/plug-ins/help-browser/dialog.c
index 16d5fe9..c893980 100644
--- a/plug-ins/help-browser/dialog.c
+++ b/plug-ins/help-browser/dialog.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]