gnome-games r7167 - trunk/aisleriot



Author: chpe
Date: Sun Jan 13 22:07:27 2008
New Revision: 7167
URL: http://svn.gnome.org/viewvc/gnome-games?rev=7167&view=rev

Log:
gtk_widget_keynav_failed is only available in gtk 2.12.


Modified:
   trunk/aisleriot/board.c

Modified: trunk/aisleriot/board.c
==============================================================================
--- trunk/aisleriot/board.c	(original)
+++ trunk/aisleriot/board.c	Sun Jan 13 22:07:27 2008
@@ -1729,12 +1729,14 @@
   /* Wrap-around? */
   if (new_focus_slot_index < 0 ||
       new_focus_slot_index >= n_slots) {
+#if GTK_CHECK_VERSION (2, 12, 0)
     g_print ("wrap-around n_slots %d new_focus_slot_index %d\n", n_slots, new_focus_slot_index);
     if (!gtk_widget_keynav_failed (widget, direction)) {
        g_print ("keynav-failed \n");
        // FIXMEchpe: if FALSE, continue below?
        return gtk_widget_child_focus (gtk_widget_get_toplevel (widget), direction);
     }
+#endif /* GTK 2.12. 0 */
 
     if (new_focus_slot_index < 0) {
       new_focus_slot_index = ((int) n_slots) - 1;



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