[gthumb] Replace gtk_action_connect_proxy deprecated function
- From: Michael J. Chudobiak <mjc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gthumb] Replace gtk_action_connect_proxy deprecated function
- Date: Mon, 1 Jun 2009 14:32:35 -0400 (EDT)
commit 9cb4fdb0b69223b2988bfb2a20e89ad767805657
Author: Javier Jardón <javierjc1982 gmail com>
Date: Mon Jun 1 14:32:19 2009 -0400
Replace gtk_action_connect_proxy deprecated function
---
src/gth-browser.c | 5 +++++
src/gth-viewer.c | 5 +++++
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/gth-browser.c b/src/gth-browser.c
index 25f5fab..1f218b5 100644
--- a/src/gth-browser.c
+++ b/src/gth-browser.c
@@ -5276,8 +5276,13 @@ add_rotate_toolbar_item (GthBrowser *browser)
gtk_tool_item_set_homogeneous (priv->rotate_tool_item, FALSE);
gtk_tool_item_set_tooltip_text (priv->rotate_tool_item, _("Rotate images without loss of quality"));
gtk_menu_tool_button_set_arrow_tooltip_text (GTK_MENU_TOOL_BUTTON (priv->rotate_tool_item), _("Rotate images without loss of quality"));
+#if GTK_CHECK_VERSION(2,16,0)
+ gtk_activatable_set_related_action (GTK_ACTIVATABLE (priv->rotate_tool_item),
+ gtk_ui_manager_get_action (priv->ui, "/MenuBar/Tools/Tools_JPEGRotate"));
+#else
gtk_action_connect_proxy (gtk_ui_manager_get_action (priv->ui, "/MenuBar/Tools/Tools_JPEGRotate"),
GTK_WIDGET (priv->rotate_tool_item));
+#endif
gtk_widget_show (GTK_WIDGET (priv->rotate_tool_item));
gtk_toolbar_insert (GTK_TOOLBAR (priv->toolbar),
priv->rotate_tool_item,
diff --git a/src/gth-viewer.c b/src/gth-viewer.c
index 0613f14..2d6394d 100644
--- a/src/gth-viewer.c
+++ b/src/gth-viewer.c
@@ -1304,8 +1304,13 @@ add_open_with_toolbar_item (GthViewer *viewer)
gtk_tool_item_set_homogeneous (priv->open_with_tool_item, FALSE);
gtk_tool_item_set_tooltip_text (priv->open_with_tool_item, _("Open selected images with an application"));
gtk_menu_tool_button_set_arrow_tooltip_text (GTK_MENU_TOOL_BUTTON (priv->open_with_tool_item), _("Open selected images with an application"));
+#if GTK_CHECK_VERSION(2,16,0)
+ gtk_activatable_set_related_action (GTK_ACTIVATABLE (priv->open_with_tool_item),
+ gtk_ui_manager_get_action (priv->ui, "/MenuBar/File/Image_OpenWith"));
+#else
gtk_action_connect_proxy (gtk_ui_manager_get_action (priv->ui, "/MenuBar/File/Image_OpenWith"),
GTK_WIDGET (priv->open_with_tool_item));
+#endif
gtk_widget_show (GTK_WIDGET (priv->open_with_tool_item));
gtk_toolbar_insert (GTK_TOOLBAR (priv->toolbar),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]