[gnome-games] Don't build games-help on hildon yet



commit 53e5d8d4b03e91b036ed0923ac1109630279265f
Author: Christian Persch <chpe gnome org>
Date:   Tue Jun 2 00:01:58 2009 +0200

    Don't build games-help on hildon yet
    
    Move games-help.[ch] out of the common case into the 1HAVE_HILDON case.
    Add #error to games_help_show in the HAVE_HILDON case.
---
 libgames-support/Makefile.am  |    4 ++--
 libgames-support/games-help.c |    6 +++++-
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/libgames-support/Makefile.am b/libgames-support/Makefile.am
index 9f63e7f..97e97b5 100644
--- a/libgames-support/Makefile.am
+++ b/libgames-support/Makefile.am
@@ -46,8 +46,6 @@ libgames_support_la_SOURCES =		\
 	games-debug.h			\
 	games-files.c			\
 	games-files.h			\
-	games-help.c			\
-	games-help.h			\
 	games-pixbuf-utils.c		\
 	games-pixbuf-utils.h		\
 	games-profile.c			\
@@ -74,6 +72,8 @@ libgames_support_la_SOURCES +=		\
 	games-find-file.h		\
 	games-gridframe.c		\
 	games-gridframe.h		\
+	games-help.c			\
+	games-help.h			\
 	games-card-selector.c		\
 	games-card-selector.h		\
 	games-preimage.c                \
diff --git a/libgames-support/games-help.c b/libgames-support/games-help.c
index 838b15d..52fe13c 100644
--- a/libgames-support/games-help.c
+++ b/libgames-support/games-help.c
@@ -38,7 +38,7 @@ games_help_display (GtkWidget *window,
                     const char *app_name,
                     const char *section)
 {
-
+#if GTK_CHECK_VERSION (2, 14, 0)
   GdkScreen *screen;
   GError *error = NULL;
   char *help_string;
@@ -68,4 +68,8 @@ games_help_display (GtkWidget *window,
   }
 
   g_free(help_string);
+
+#else /* GTK+ < 2.14 */
+#error FIXME: games_help_display unimplemented on hildon!
+#endif /* GTK+ >= 2.14 */
 }



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