[gnome-games] libgames-support: Fix definition of gtk_widget_set_can_focus



commit 9711dafeae4aeb382549ffaa635d0fb38a48489f
Author: Christian Persch <chpe gnome org>
Date:   Thu Jan 7 20:32:07 2010 +0100

    libgames-support: Fix definition of gtk_widget_set_can_focus

 libgames-support/games-gtk-compat.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgames-support/games-gtk-compat.h b/libgames-support/games-gtk-compat.h
index f2e16bd..d70a6c5 100644
--- a/libgames-support/games-gtk-compat.h
+++ b/libgames-support/games-gtk-compat.h
@@ -35,7 +35,7 @@ G_BEGIN_DECLS
 #define gtk_widget_get_state(widget) ((widget)->state)
 #define gtk_widget_get_visible(widget) (GTK_WIDGET_VISIBLE (widget))
 #define gtk_widget_is_drawable(widget) (GTK_WIDGET_DRAWABLE (widget))
-#define gtk_widget_set_can_focus(widget, TRUE) (GTK_WIDGET_SET_FLAGS (widget, GTK_CAN_FOCUS))
+#define gtk_widget_set_can_focus(widget, can_focus) GTK_WIDGET_SET_FLAGS (widget, GTK_CAN_FOCUS)
 #endif /* GTK < 2.18.0 */
 
 #if !GTK_CHECK_VERSION (2, 14, 0)



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