[gnome-games] gnibbles: fix build warning
- From: Thomas Hindoe Paaboel Andersen <thomashpa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] gnibbles: fix build warning
- Date: Fri, 7 Jan 2011 23:52:00 +0000 (UTC)
commit c540e340c67ed0c637daa5e27c80af109239f6bb
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date: Sat Jan 8 00:51:05 2011 +0100
gnibbles: fix build warning
Move restart function into WITH_SMCLIENT ifdef block.
glines/glines.c | 40 ++++++++++++++++++++--------------------
1 files changed, 20 insertions(+), 20 deletions(-)
---
diff --git a/glines/glines.c b/glines/glines.c
index e0b9769..657aa1a 100644
--- a/glines/glines.c
+++ b/glines/glines.c
@@ -1587,26 +1587,6 @@ quit_cb (EggSMClient *client,
return FALSE;
}
-#endif /* WITH_SMCLIENT */
-
-static void
-load_properties (void)
-{
- gchar *buf;
-
- ball_filename = games_conf_get_string_with_default (KEY_PREFERENCES_GROUP, KEY_BALL_THEME, DEFAULT_BALL_THEME);
-
- move_timeout = games_conf_get_integer (KEY_PREFERENCES_GROUP, KEY_MOVE_TIMEOUT, NULL);
- if (move_timeout <= 0)
- move_timeout = 100;
-
- buf = games_conf_get_string_with_default (KEY_PREFERENCES_GROUP, KEY_BACKGROUND_COLOR, "#000000"); /* FIXMEchpe? */
- set_backgnd_color (buf);
- g_free (buf);
-
- load_theme ();
-}
-
static void
restart (void)
{
@@ -1638,6 +1618,26 @@ restart (void)
}
}
+#endif /* WITH_SMCLIENT */
+
+static void
+load_properties (void)
+{
+ gchar *buf;
+
+ ball_filename = games_conf_get_string_with_default (KEY_PREFERENCES_GROUP, KEY_BALL_THEME, DEFAULT_BALL_THEME);
+
+ move_timeout = games_conf_get_integer (KEY_PREFERENCES_GROUP, KEY_MOVE_TIMEOUT, NULL);
+ if (move_timeout <= 0)
+ move_timeout = 100;
+
+ buf = games_conf_get_string_with_default (KEY_PREFERENCES_GROUP, KEY_BACKGROUND_COLOR, "#000000"); /* FIXMEchpe? */
+ set_backgnd_color (buf);
+ g_free (buf);
+
+ load_theme ();
+}
+
static const GtkActionEntry actions[] = {
{"GameMenu", NULL, N_("_Game")},
{"SettingsMenu", NULL, N_("_Settings")},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]