[Xfce4-commits] <postler:master> Connect viewer visibility to messages.selected_location

Christian Dywan noreply at xfce.org
Fri Nov 12 01:46:02 CET 2010


Updating branch refs/heads/master
         to 893cb55756c6ec43b72789fc478cf8937c347c40 (commit)
       from bca772cae66bfba5e4aaf6ceaece65286c3921f0 (commit)

commit 893cb55756c6ec43b72789fc478cf8937c347c40
Author: Christian Dywan <christian at twotoasts.de>
Date:   Fri Nov 12 01:21:08 2010 +0100

    Connect viewer visibility to messages.selected_location
    
    Fixes: https://bugs.launchpad.net/postler/+bug/672823

 postler/postler-bureau.vala |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/postler/postler-bureau.vala b/postler/postler-bureau.vala
index 776f191..9c4d77d 100644
--- a/postler/postler-bureau.vala
+++ b/postler/postler-bureau.vala
@@ -526,6 +526,12 @@ public class Postler.Bureau : Gtk.Window {
         });
 
         var viewer = new Postler.Viewer (content);
+        viewer.show_all ();
+        viewer.set_no_show_all (true);
+        viewer.hide ();
+        messages.notify["selected-location"].connect ((object, pspec) => {
+            viewer.visible = messages.selected_location != null;
+        });
         vpaned.pack2 (viewer, false, true);
         shelf.show_all ();
         search_options.hide ();



More information about the Xfce4-commits mailing list