[gnome-games] aisleriot: Add define to disable keynav code
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games] aisleriot: Add define to disable keynav code
- Date: Fri, 10 Jul 2009 19:45:14 +0000 (UTC)
commit acae0a0b720d4f9e643ae9260b2bd5520b182259
Author: Christian Persch <chpe gnome org>
Date: Fri Jul 10 21:44:34 2009 +0200
aisleriot: Add define to disable keynav code
If passing CPPFLAGS+="-DDISABLE_KEYNAV", the keynav code is compiled
out.
aisleriot/board-noclutter.c | 2 +-
aisleriot/board.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/aisleriot/board-noclutter.c b/aisleriot/board-noclutter.c
index 2dbd8a2..54f1600 100644
--- a/aisleriot/board-noclutter.c
+++ b/aisleriot/board-noclutter.c
@@ -43,7 +43,7 @@
#define AISLERIOT_BOARD_GET_PRIVATE(board)(G_TYPE_INSTANCE_GET_PRIVATE ((board), AISLERIOT_TYPE_BOARD, AisleriotBoardPrivate))
/* Enable keynav on non-hildon by default */
-#ifndef HAVE_HILDON
+#if !defined(HAVE_HILDON) && !defined(DISABLE_KEYNAV)
#define ENABLE_KEYNAV
#endif /* !HAVE_HILDON */
diff --git a/aisleriot/board.c b/aisleriot/board.c
index 7aaba39..62ad753 100644
--- a/aisleriot/board.c
+++ b/aisleriot/board.c
@@ -48,7 +48,7 @@
#define AISLERIOT_BOARD_GET_PRIVATE(board)(G_TYPE_INSTANCE_GET_PRIVATE ((board), AISLERIOT_TYPE_BOARD, AisleriotBoardPrivate))
/* Enable keynav on non-hildon by default */
-#ifndef HAVE_HILDON
+#if !defined(HAVE_HILDON) && !defined(DISABLE_KEYNAV)
#define ENABLE_KEYNAV
#endif /* !HAVE_HILDON */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]