[geary] Fix main window showing a menubar under earlier GTK versions.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary] Fix main window showing a menubar under earlier GTK versions.
- Date: Fri, 9 Dec 2016 04:57:55 +0000 (UTC)
commit 5c8e838ea9dc51c3a6acafe379e9ce6c73b6b711
Author: Michael James Gratton <mike vee net>
Date: Fri Dec 9 15:57:35 2016 +1100
Fix main window showing a menubar under earlier GTK versions.
* src/client/components/main-window.vala (MainWindow::MainWindow):
Restore explictly setting show-menubar property to false.
src/client/components/main-window.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/client/components/main-window.vala b/src/client/components/main-window.vala
index 8842aa9..a2c9a14 100644
--- a/src/client/components/main-window.vala
+++ b/src/client/components/main-window.vala
@@ -49,6 +49,11 @@ public class MainWindow : Gtk.ApplicationWindow {
public MainWindow(GearyApplication application) {
Object(application: application);
+ // GTK+ 3.14 (and others?) ignores this property in the UI
+ // file, so set it explicitly here to avoid having a menubar
+ // appear when the desktop shell does not show the app menu
+ this.show_menubar = false;
+
load_config(application.config);
restore_saved_window_state();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]