[gnome-games] aisleriot: Fix a unused code warning on !ENABLE_SOUND
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games] aisleriot: Fix a unused code warning on !ENABLE_SOUND
- Date: Thu, 9 Jul 2009 23:14:02 +0000 (UTC)
commit 35bbbbab4c5e0748dfdd29e87d84588777f62148
Author: Christian Persch <chpe gnome org>
Date: Wed Jul 8 14:03:25 2009 +0200
aisleriot: Fix a unused code warning on !ENABLE_SOUND
aisleriot/window.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/aisleriot/window.c b/aisleriot/window.c
index 071dc9e..d78d855 100644
--- a/aisleriot/window.c
+++ b/aisleriot/window.c
@@ -1108,6 +1108,8 @@ clickmove_toggle_cb (GtkToggleAction *action,
games_conf_set_boolean (NULL, aisleriot_conf_get_key (CONF_CLICK_TO_MOVE), click_to_move);
}
+#ifdef ENABLE_SOUND
+
static void
sound_toggle_cb (GtkToggleAction *action,
AisleriotWindow *window)
@@ -1121,6 +1123,8 @@ sound_toggle_cb (GtkToggleAction *action,
games_conf_set_boolean (NULL, aisleriot_conf_get_key (CONF_SOUND), sound_enabled);
}
+#endif /* ENABLE_SOUND */
+
#ifdef HAVE_CLUTTER
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]