[file-roller] install the app menu only if there's the gnome-shell showing it
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] install the app menu only if there's the gnome-shell showing it
- Date: Tue, 11 Sep 2012 15:57:49 +0000 (UTC)
commit 2f9c8b4eac71dea41ff6afc052418c8362f9c1a2
Author: Christian Persch <chpe gnome org>
Date: Tue Sep 11 17:55:14 2012 +0200
install the app menu only if there's the gnome-shell showing it
[bug #683759]
src/main.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 38641d5..2ecd316 100644
--- a/src/main.c
+++ b/src/main.c
@@ -172,8 +172,15 @@ static const GActionEntry app_menu_entries[] = {
static void
initialize_app_menu (GApplication *application)
{
+ gboolean show_app_menu;
GtkBuilder *builder;
+ g_object_get (gtk_settings_get_default (),
+ "gtk-shell-shows-app-menu", &show_app_menu,
+ NULL);
+ if (! show_app_menu)
+ return;
+
g_action_map_add_action_entries (G_ACTION_MAP (application),
app_menu_entries,
G_N_ELEMENTS (app_menu_entries),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]