gnome-games r7230 - trunk/aisleriot



Author: chpe
Date: Mon Jan 14 14:15:06 2008
New Revision: 7230
URL: http://svn.gnome.org/viewvc/gnome-games?rev=7230&view=rev

Log:
#ifdef ENABLE_KEYNAV focus-in/out handler.


Modified:
   trunk/aisleriot/board.c

Modified: trunk/aisleriot/board.c
==============================================================================
--- trunk/aisleriot/board.c	(original)
+++ trunk/aisleriot/board.c	Mon Jan 14 14:15:06 2008
@@ -2667,6 +2667,7 @@
 aisleriot_board_focus_in (GtkWidget *widget,
                           GdkEventFocus *event)
 {
+#ifdef ENABLE_KEYNAV
   AisleriotBoard *board = AISLERIOT_BOARD (widget);
   AisleriotBoardPrivate *priv = board->priv;
 
@@ -2675,6 +2676,7 @@
       priv->focus_slot != NULL) {
     gdk_window_invalidate_rect (widget->window, &priv->focus_rect, FALSE);
   }
+#endif /* ENABLE_KEYNAV */
 
   return FALSE;
 }
@@ -2684,15 +2686,19 @@
                            GdkEventFocus *event)
 {
   AisleriotBoard *board = AISLERIOT_BOARD (widget);
+#ifdef ENABLE_KEYNAV
   AisleriotBoardPrivate *priv = board->priv;
+#endif /* ENABLE_KEYNAV */
 
   clear_state (board);
 
+#ifdef ENABLE_KEYNAV
   /* Hide focus */
   if (priv->show_focus &&
       priv->focus_slot != NULL) {
     gdk_window_invalidate_rect (widget->window, &priv->focus_rect, FALSE);
   }
+#endif /* ENABLE_KEYNAV */
 
   return FALSE;
 }



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