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.
This commit is contained in:
Michael James Gratton 2016-12-09 15:57:35 +11:00
parent 56179ba066
commit 5c8e838ea9

View file

@ -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();