diff --git a/src/client/components/main-toolbar.vala b/src/client/components/main-toolbar.vala index b80e6912..92855f60 100644 --- a/src/client/components/main-toolbar.vala +++ b/src/client/components/main-toolbar.vala @@ -67,18 +67,10 @@ public class MainToolbar : Gtk.Box { public MainToolbar(Configuration config) { - // Instead of putting a separator between the two headerbars, as other applications do, - // we put a separator at the right end of the left headerbar. This greatly improves - // the appearance under the Ambiance theme (see bug #746171). To get this separator to - // line up with the handle of the pane, we need to extend the width of the left-hand - // headerbar a bit. Six pixels is right both for Adwaita and Ambiance. + // Sync headerbar width with left pane config.bind(Configuration.MESSAGES_PANE_POSITION_KEY, this, "left-pane-width", SettingsBindFlags.GET); - this.bind_property("left-pane-width", this.folder_header, "width-request", - BindingFlags.SYNC_CREATE, (binding, source_value, ref target_value) => { - target_value = left_pane_width + 6; - return true; - }); + this.bind_property("left-pane-width", this.folder_header, "width-request", BindingFlags.SYNC_CREATE); if (config.desktop_environment != Configuration.DesktopEnvironment.UNITY) { this.bind_property("account", this.folder_header, "title", BindingFlags.SYNC_CREATE); diff --git a/ui/main-toolbar.ui b/ui/main-toolbar.ui index 410dea1c..72549aab 100644 --- a/ui/main-toolbar.ui +++ b/ui/main-toolbar.ui @@ -32,17 +32,6 @@ - - - True - False - vertical - - - end - 1 - - True @@ -95,6 +84,16 @@ 0 + + + True + False + vertical + + + 1 + + True @@ -359,7 +358,7 @@ True True - 1 + 2