[nautilus] application: add an environment variable to debug no-app-menu scenarios
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] application: add an environment variable to debug no-app-menu scenarios
- Date: Tue, 7 Aug 2012 18:16:25 +0000 (UTC)
commit 2b3359e97f323d5b59483b0845457275d7dc3d72
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Aug 7 20:13:12 2012 +0200
application: add an environment variable to debug no-app-menu scenarios
So that we can test under a stock environment the behavior when an app
menu is not provided by the shell (since we have fallback code for such
a case).
https://bugzilla.gnome.org/show_bug.cgi?id=681394
src/nautilus-application.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 5bdc788..4676530 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -914,6 +914,7 @@ nautilus_application_init_actions (NautilusApplication *self)
{
GtkBuilder *builder;
GError *error = NULL;
+ const gchar *debug_no_app_menu;
g_action_map_add_action_entries (G_ACTION_MAP (self),
app_entries, G_N_ELEMENTS (app_entries),
@@ -932,6 +933,14 @@ nautilus_application_init_actions (NautilusApplication *self)
}
g_object_unref (builder);
+
+ debug_no_app_menu = g_getenv ("NAUTILUS_DEBUG_NO_APP_MENU");
+ if (debug_no_app_menu) {
+ DEBUG ("Disabling app menu GtkSetting as requested...");
+ g_object_set (gtk_settings_get_default (),
+ "gtk-shell-shows-app-menu", FALSE,
+ NULL);
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]