[gnome-boxes/gnome-3-18] app-window: Set 'show-menubar' from vala
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/gnome-3-18] app-window: Set 'show-menubar' from vala
- Date: Tue, 22 Sep 2015 13:52:26 +0000 (UTC)
commit 72a26280ca9c0665638ba6fc5159167d537fa4c1
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]