[gnome-terminal] app: Always install the app menu



commit 2faa3fc1419bba5cdac7605558f3ff80176bafc8
Author: Christian Persch <chpe gnome org>
Date:   Thu Jan 24 17:21:49 2013 +0100

    app: Always install the app menu
    
    Now that we set 'show-appmenu' to FALSE for the windows, there's no reason
    not to always install the app menu. This way, it works even when the shell
    isn't started when g-t server starts.

 src/terminal-app.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/src/terminal-app.c b/src/terminal-app.c
index 9bdd1dc..5c2ecd2 100644
--- a/src/terminal-app.c
+++ b/src/terminal-app.c
@@ -1139,18 +1139,12 @@ terminal_app_startup (GApplication *application)
 
   GtkBuilder *builder;
   GError *error = NULL;
-  gboolean shell_shows_app_menu;
 
   G_APPLICATION_CLASS (terminal_app_parent_class)->startup (application);
 
   /* Need to set the WM class (bug #685742) */
   gdk_set_program_class("Gnome-terminal");
 
-  /* Only install the app menu if it's going to be shown */
-  g_object_get (gtk_settings_get_for_screen (gdk_screen_get_default ()), "gtk-shell-shows-app-menu", &shell_shows_app_menu, NULL);
-  if (!shell_shows_app_menu)
-    return;
-
   g_action_map_add_action_entries (G_ACTION_MAP (application),
                                    app_menu_actions, G_N_ELEMENTS (app_menu_actions),
                                    application);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]