[Xfce4-commits] <postler:master> Update search results in idle when changing folder

Christian Dywan noreply at xfce.org
Tue Feb 22 23:20:02 CET 2011


Updating branch refs/heads/master
         to db4f0cbb25d411754bd1ea04c1c2227ff9132a6f (commit)
       from cfb870982928d2418d46167f17f37380f4818c77 (commit)

commit db4f0cbb25d411754bd1ea04c1c2227ff9132a6f
Author: Sergio Spinatelli <spinatelli.sergio at gmail.com>
Date:   Tue Feb 22 22:38:21 2011 +0100

    Update search results in idle when changing folder
    
    Fixes: https://bugs.launchpad.net/postler/+bug/723401

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

diff --git a/postler/postler-bureau.vala b/postler/postler-bureau.vala
index c3d2f26..25fb2d4 100644
--- a/postler/postler-bureau.vala
+++ b/postler/postler-bureau.vala
@@ -638,6 +638,11 @@ public class Postler.Bureau : Gtk.Window {
         search.sensitive = false;
         folders.notify["selected-location"].connect ((object, pspec) => {
             search.sensitive = folders.selected_location != null;
+            if (search_options.visible)
+                GLib.Idle.add (() => {
+                    search.activate ();
+                    return false;
+                });
         });
         var folderbox = new Gtk.HBox (false, 4);
         var scrolled = new Postler.ScrolledWindow (folders);



More information about the Xfce4-commits mailing list