[aisleriot/wip/redesign: 4/17] debug: Add debug flag to show app menu in-window
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aisleriot/wip/redesign: 4/17] debug: Add debug flag to show app menu in-window
- Date: Wed, 3 Jul 2013 17:53:41 +0000 (UTC)
commit 555340c3ebf0091e421a72ebc9fb8b6fa908b8ca
Author: Christian Persch <chpe gnome org>
Date: Tue Jul 2 13:09:29 2013 +0200
debug: Add debug flag to show app menu in-window
src/lib/ar-debug.c | 1 +
src/lib/ar-debug.h | 11 ++++++-----
src/window.c | 4 ++++
3 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/src/lib/ar-debug.c b/src/lib/ar-debug.c
index a1b18db..d4d4612 100644
--- a/src/lib/ar-debug.c
+++ b/src/lib/ar-debug.c
@@ -37,6 +37,7 @@ ar_debug_init (void)
{ "scheme", AR_DEBUG_SCHEME },
{ "sound", AR_DEBUG_SOUND },
{ "window-state", AR_DEBUG_WINDOW_STATE },
+ { "appmenu", AR_DEBUG_APPMENU },
{ "game-drawing", AR_DEBUG_GAME_DRAWING },
{ "game-events", AR_DEBUG_GAME_EVENTS },
diff --git a/src/lib/ar-debug.h b/src/lib/ar-debug.h
index 42128ca..d5fbc5b 100644
--- a/src/lib/ar-debug.h
+++ b/src/lib/ar-debug.h
@@ -34,12 +34,13 @@ typedef enum {
AR_DEBUG_SCHEME = 1 << 4,
AR_DEBUG_SOUND = 1 << 5,
AR_DEBUG_WINDOW_STATE = 1 << 6,
+ AR_DEBUG_APPMENU = 1 << 7,
- AR_DEBUG_GAME_DRAWING = 1 << 7,
- AR_DEBUG_GAME_EVENTS = 1 << 8,
- AR_DEBUG_GAME_KEYNAV = 1 << 9,
- AR_DEBUG_GAME_SIZING = 1 << 10,
- AR_DEBUG_GAME_STYLE = 1 << 11
+ AR_DEBUG_GAME_DRAWING = 1 << 8,
+ AR_DEBUG_GAME_EVENTS = 1 << 9,
+ AR_DEBUG_GAME_KEYNAV = 1 << 10,
+ AR_DEBUG_GAME_SIZING = 1 << 11,
+ AR_DEBUG_GAME_STYLE = 1 << 12
} ArDebugFlags;
#ifdef GNOME_ENABLE_DEBUG
diff --git a/src/window.c b/src/window.c
index 6a13592..877e4b4 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2437,7 +2437,11 @@ aisleriot_window_new (GtkApplication *application)
{
return g_object_new (AISLERIOT_TYPE_WINDOW,
"application", application,
+#ifdef GNOME_ENABLE_DEBUG
+ "show-menubar", ar_debug_on (AR_DEBUG_APPMENU),
+#else
"show-menubar", FALSE,
+#endif
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]