[gnome-boxes] app-window: Set 'show-menubar' from vala



commit 0031d10e175b0e9a8af03668dc4617726952f62b
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon Sep 21 23:32:20 2015 +0100

    app-window: Set 'show-menubar' from vala
    
    Apparently construct properties can't be set from templates currently so
    this property never gets set and we end up with a redundant topbar and
    menu if "Show application menu" is disabled through tweak-tool.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=754426

 src/app-window.vala |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/app-window.vala b/src/app-window.vala
index 5ad8c83..97dc27a 100644
--- a/src/app-window.vala
+++ b/src/app-window.vala
@@ -123,7 +123,10 @@ private class Boxes.AppWindow: Gtk.ApplicationWindow, Boxes.UI {
     public static const uint configure_id_timeout = 100;  // 100ms
 
     public AppWindow (Gtk.Application app) {
-        Object (application: app, title: _("Boxes"));
+        Object (application:  app,
+                title:        _("Boxes"),
+                // Can't be set from template: https://bugzilla.gnome.org/show_bug.cgi?id=754426#c14
+                show_menubar: false);
 
         settings = new GLib.Settings ("org.gnome.boxes");
 


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