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



commit 163fddc1c4250c4d7120fe9419de813e38d1aa8d
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 4bde620..9f99db3 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 368f5f0..0cb7dd9 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;
@@ -64,4 +64,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]