[gnome-games] gnotravex: fix build with no smclient



commit 205bd0b5b98a7f06ca7d0cab3b16f64b813fe450
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date:   Sat Jan 8 01:20:01 2011 +0100

    gnotravex: fix build with no smclient
    
    Only enclose smclient related code in WITH_SMCLIENT ifdef block.

 gnotravex/gnotravex.c |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/gnotravex/gnotravex.c b/gnotravex/gnotravex.c
index 2bbc341..7c592b3 100644
--- a/gnotravex/gnotravex.c
+++ b/gnotravex/gnotravex.c
@@ -1466,6 +1466,17 @@ save_state_cb (EggSMClient *client,
   return TRUE;
 }
 
+static gint
+quit_cb (EggSMClient *client,
+         gpointer client_data)
+{
+  quit_game_cb ();
+
+  return FALSE;
+}
+
+#endif /* WITH_SMCLIENT */
+
 static void
 find_first_tile (gint status, gint * xx, gint * yy)
 {
@@ -1609,17 +1620,6 @@ about_cb (GtkAction * action, gpointer data)
   g_free (license);
 }
 
-static gint
-quit_cb (EggSMClient *client,
-         gpointer client_data)
-{
-  quit_game_cb ();
-
-  return FALSE;
-}
-
-#endif /* WITH_SMCLIENT */
-
 static void
 size_cb (GtkAction * action, gpointer data)
 {



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