[gthumb] Replace gtk_widget_get_action deprecated function
- From: Michael J. Chudobiak <mjc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gthumb] Replace gtk_widget_get_action deprecated function
- Date: Mon, 1 Jun 2009 14:34:08 -0400 (EDT)
commit 4982128284451ebb656748de6720fbfdc3e2838d
Author: Javier Jardón <javierjc1982 gmail com>
Date: Mon Jun 1 14:33:56 2009 -0400
Replace gtk_widget_get_action deprecated function
---
src/gth-browser.c | 4 ++++
src/gth-viewer.c | 4 ++++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/gth-browser.c b/src/gth-browser.c
index 1f218b5..3d06d7d 100644
--- a/src/gth-browser.c
+++ b/src/gth-browser.c
@@ -5122,7 +5122,11 @@ menu_item_select_cb (GtkMenuItem *proxy,
GtkAction *action;
char *message;
+#if GTK_CHECK_VERSION(2,16,0)
+ action = gtk_activatable_get_related_action (GTK_ACTIVATABLE (proxy));
+#else
action = gtk_widget_get_action (GTK_WIDGET (proxy));
+#endif
g_return_if_fail (action != NULL);
g_object_get (G_OBJECT (action), "tooltip", &message, NULL);
diff --git a/src/gth-viewer.c b/src/gth-viewer.c
index 2d6394d..6f782f5 100644
--- a/src/gth-viewer.c
+++ b/src/gth-viewer.c
@@ -283,7 +283,11 @@ menu_item_select_cb (GtkMenuItem *proxy,
GtkAction *action;
char *message;
+#if GTK_CHECK_VERSION(2,16,0)
+ action = gtk_activatable_get_related_action (GTK_ACTIVATABLE (proxy));
+#else
action = gtk_widget_get_action (GTK_WIDGET (proxy));
+#endif
g_return_if_fail (action != NULL);
g_object_get (G_OBJECT (action), "tooltip", &message, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]