[Xfce4-commits] <postler:master> Use a third of the window as message pane size

Christian Dywan noreply at xfce.org
Mon Jul 18 00:50:01 CEST 2011


Updating branch refs/heads/master
         to 5c9426e13c985e5d9649cf5f49ff35832641cf31 (commit)
       from 167ea3316e0cd805b6a23e3a4bb85f885114c3fb (commit)

commit 5c9426e13c985e5d9649cf5f49ff35832641cf31
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sun Jul 17 22:13:11 2011 +0200

    Use a third of the window as message pane size

 postler/postler-bureau.vala |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/postler/postler-bureau.vala b/postler/postler-bureau.vala
index f46e397..75049c3 100644
--- a/postler/postler-bureau.vala
+++ b/postler/postler-bureau.vala
@@ -567,6 +567,7 @@ public class Postler.Bureau : Gtk.Window {
         screen.get_monitor_geometry (0, out monitor);
         double window_width = monitor.width / 1.7;
         double window_height = monitor.height / 1.7;
+        int pane_position = (int)(window_width / 3);
 
         if ((double)previous_state.width != 0)
             window_width = (double) previous_state.width;
@@ -909,7 +910,7 @@ public class Postler.Bureau : Gtk.Window {
                 if (vpaned.position < vpaned.max_position)
                     vpaned.position = vpaned.max_position;
                 else
-                    vpaned.position = (int)(window_height / 3);
+                    vpaned.position = pane_position;
                 return true;
             }
             return false;
@@ -918,7 +919,7 @@ public class Postler.Bureau : Gtk.Window {
 
         messages.set_headers_visible (false);
         messages.set_rules_hint (true);
-        vpaned.set_position ((int)(window_height / 3));
+        vpaned.set_position (pane_position);
 
         folders.messages = messages;
         messages.content = content;



More information about the Xfce4-commits mailing list