[polari] mainWindow: Fix app-menu fallback
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] mainWindow: Fix app-menu fallback
- Date: Tue, 22 Mar 2016 19:20:41 +0000 (UTC)
commit 1d443f234b50468c975f4d8ac68f3bb92c35669c
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Mar 10 23:24:31 2016 +0100
mainWindow: Fix app-menu fallback
Construct-only properties cannot be set from a template, so commit
2d6ccc7c831 brought the fallback menubar back. We already show the
fallback app menu in the headerbar, so disable it again.
https://bugzilla.gnome.org/show_bug.cgi?id=763873
data/resources/main-window.ui | 1 -
src/mainWindow.js | 1 +
2 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/data/resources/main-window.ui b/data/resources/main-window.ui
index 900f94b..2067a8b 100644
--- a/data/resources/main-window.ui
+++ b/data/resources/main-window.ui
@@ -12,7 +12,6 @@
<template class="Gjs_MainWindow">
<property name="title" translatable="yes">Polari</property>
<property name="icon-name">org.gnome.Polari</property>
- <property name="show-menubar">false</property>
<child type="titlebar">
<object class="GtkBox">
<property name="visible">True</property>
diff --git a/src/mainWindow.js b/src/mainWindow.js
index e6eb44b..a46b113 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -114,6 +114,7 @@ const MainWindow = new Lang.Class({
_init: function(params) {
this._subtitle = '';
+ params.show_menubar = false;
this.parent(params);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]