[gnome-documents/gnome-3-16] mainWindow: Don't show an extra menu when the app menu is disabled



commit a8cfd9e181843fcb794673a219764aa719b81d74
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Oct 8 09:21:19 2015 +0200

    mainWindow: Don't show an extra menu when the app menu is disabled
    
    GTK+ gets confused because we don't put a GtkHeaderBar directly into
    the GtkWindow's titlebar spot, and ends up showing an extra menu below
    the header bar. Set GtkApplicationWindow:show-menubar to false to sort
    things out.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=756220

 src/mainWindow.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 18fd429..f33ebe5 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -49,6 +49,7 @@ const MainWindow = new Lang.Class({
                                                   width_request: _WINDOW_MIN_WIDTH,
                                                   height_request: _WINDOW_MIN_HEIGHT,
                                                  window_position: Gtk.WindowPosition.CENTER,
+                                                  show_menubar: false,
                                                  title: _("Documents") });
 
         // apply the last saved window size and position


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