[gnome-games] Ifdef the last usage of deprecated gtk symbols



commit 6dcb0ab57dad3a98636f3515a87fb7cad5a9b887
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date:   Fri Oct 16 00:41:43 2009 +0200

    Ifdef the last usage of deprecated gtk symbols

 libgames-support/games-stock.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libgames-support/games-stock.c b/libgames-support/games-stock.c
index 6f6d682..f99fc8f 100644
--- a/libgames-support/games-stock.c
+++ b/libgames-support/games-stock.c
@@ -89,7 +89,9 @@ menu_item_select_cb (GtkWidget * widget, GtkStatusbar * statusbar)
 
   context_id = gtk_statusbar_get_context_id (statusbar, "games-tooltip");
 
-#if GTK_CHECK_VERSION (2, 10, 0)
+#if GTK_CHECK_VERSION (2, 16, 0)
+  action = gtk_activatable_get_related_action (GTK_ACTIVATABLE (widget));
+#elif GTK_CHECK_VERSION (2, 10, 0)
   action = gtk_widget_get_action (widget);
 #else
   action = g_object_get_data (G_OBJECT (widget), "gtk-action");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]