Updating branch refs/heads/master to 91fe040dd67eaddd4cbcc5be6b2962a1b3119d3a (commit) from 6ee950a379857aa48d953581fcb7e04882fdd77c (commit)
commit 91fe040dd67eaddd4cbcc5be6b2962a1b3119d3a Author: Christian Dywan <christ...@twotoasts.de> Date: Sat Nov 27 16:29:25 2010 +0100 Show 3 vertical columns in fullscreen mode postler/postler-bureau.vala | 19 ++++++++----------- 1 files changed, 8 insertions(+), 11 deletions(-) diff --git a/postler/postler-bureau.vala b/postler/postler-bureau.vala index 6297d23..afa3cf3 100644 --- a/postler/postler-bureau.vala +++ b/postler/postler-bureau.vala @@ -298,21 +298,17 @@ public class Postler.Bureau : Gtk.Window { } void action_fullscreen () { + Gtk.Orientation orientation; if ((window.get_state () & Gdk.WindowState.FULLSCREEN) == 0) { - toolbar.hide (); - ((Gtk.Paned)(folders.parent.parent)).set_position (0); - ((Gtk.Paned)(messages.parent.parent.parent)).set_position (0); + /* 3 vertical columns */ + orientation = Gtk.Orientation.HORIZONTAL; fullscreen (); } else { - toolbar.show (); - int width, height; - get_size (out width, out height); - width = (int)((double)width / 4); - height = (int)((double)height / 3); - ((Gtk.Paned)(folders.parent.parent)).set_position (width); - ((Gtk.Paned)(messages.parent.parent.parent)).set_position (height); + /* 1 : 2 layout */ + orientation = Gtk.Orientation.VERTICAL; unfullscreen (); } + (messages.parent.parent.parent as Gtk.Orientable).set_orientation (orientation); } void action_view_source () { @@ -511,7 +507,7 @@ public class Postler.Bureau : Gtk.Window { var vpaned = new Gtk.VPaned (); hpaned.pack2 (vpaned, true, false); /* do expand, don't shrink */ var messages_box = new Gtk.VBox (false, 0); - vpaned.pack1 (messages_box, false, true); + vpaned.pack1 (messages_box, false, false); /* no expand, no shrink */ search_options = ui.get_widget ("/search_options") as Gtk.Toolbar; actions.get_action ("SearchSubject").is_important = true; actions.get_action ("SearchSender").is_important = true; @@ -519,6 +515,7 @@ public class Postler.Bureau : Gtk.Window { actions.get_action ("SearchFulltext").is_important = true; actions.get_action ("SaveSearch").is_important = true; messages_box.pack_start (search_options, false, false, 0); + messages = new Postler.Messages (accounts); messages.set_size_request (250, 250); actions.get_action ("MessageFlag").sensitive = false; _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits