From dc6fb34422baa975b19631d238cf9784f4bbbbfb Mon Sep 17 00:00:00 2001 From: Julian Sparber Date: Thu, 8 Oct 2020 16:59:43 +0200 Subject: [PATCH] main-window: replace GtkApplicationWindow with HdyApplicaitonWindow HdyApplicationWindow moves the titlebar into the content area of the window which allows us to split the current main-titlebar and move the parts directly into the leaflets without the need of swipe groups nor size groups. --- src/client/application/application-main-window.vala | 7 ++----- ui/application-main-window.ui | 5 +---- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/client/application/application-main-window.vala b/src/client/application/application-main-window.vala index 8af06365..b6f785a0 100644 --- a/src/client/application/application-main-window.vala +++ b/src/client/application/application-main-window.vala @@ -8,7 +8,7 @@ [GtkTemplate (ui = "/org/gnome/Geary/application-main-window.ui")] public class Application.MainWindow : - Gtk.ApplicationWindow, Geary.BaseInterface { + Hdy.ApplicationWindow, Geary.BaseInterface { // Named actions. @@ -1322,10 +1322,7 @@ public class Application.MainWindow : this.main_toolbar.show_close_button = false; this.main_layout.pack_start(main_toolbar, false, true, 0); } else { - var titlebar = new Hdy.TitleBar(); - titlebar.show(); - titlebar.add(this.main_toolbar); - set_titlebar(titlebar); + this.main_layout.pack_start(main_toolbar, false, true, 0); } this.main_toolbar.add_conversation_actions(this.conversation_actions); diff --git a/ui/application-main-window.ui b/ui/application-main-window.ui index ffef5930..d54d365a 100644 --- a/ui/application-main-window.ui +++ b/ui/application-main-window.ui @@ -2,7 +2,7 @@ -