[geary/wip/714793-orientation: 1/3] Stretch status bar across both folder and conversation lists



commit 7db0a03e8216646174db8f01d9926ae071336005
Author: Robert Schroll <rschroll gmail com>
Date:   Thu Feb 12 03:36:45 2015 -0500

    Stretch status bar across both folder and conversation lists

 src/client/components/main-window.vala |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/src/client/components/main-window.vala b/src/client/components/main-window.vala
index 93ca551..ea8593f 100644
--- a/src/client/components/main-window.vala
+++ b/src/client/components/main-window.vala
@@ -209,14 +209,10 @@ public class MainWindow : Gtk.ApplicationWindow {
         conversation_frame.add(conversation_list_scrolled);
         
         // Three-pane display.
-        Gtk.Box status_bar_box = new Gtk.Box(Gtk.Orientation.VERTICAL, 0);
         status_bar.set_size_request(-1, STATUS_BAR_HEIGHT);
         status_bar.set_border_width(2);
         spinner.set_size_request(STATUS_BAR_HEIGHT - 2, -1);
         status_bar.add(spinner);
-        status_bar_box.pack_start(folder_frame);
-        status_bar_box.pack_start(status_bar, false, false, 0);
-        status_bar_box.get_style_context().add_class(Gtk.STYLE_CLASS_SIDEBAR);
         
         folder_paned.get_style_context().add_class("sidebar-pane-separator");
         
@@ -225,11 +221,16 @@ public class MainWindow : Gtk.ApplicationWindow {
         viewer_frame.add(conversation_viewer);
         
         // Folder list to the left of everything.
-        folder_paned.pack1(status_bar_box, false, false);
+        folder_paned.pack1(folder_frame, false, false);
         folder_paned.pack2(conversation_frame, true, false);
         
+        Gtk.Box status_bar_box = new Gtk.Box(Gtk.Orientation.VERTICAL, 0);
+        status_bar_box.pack_start(folder_paned);
+        status_bar_box.pack_start(status_bar, false, false, 0);
+        status_bar_box.get_style_context().add_class(Gtk.STYLE_CLASS_SIDEBAR);
+        
         // Message list left of message viewer.
-        conversations_paned.pack1(folder_paned, false, false);
+        conversations_paned.pack1(status_bar_box, false, false);
         conversations_paned.pack2(viewer_frame, true, true);
         
         if (GearyApplication.instance.is_running_unity)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]