From fad50f57cc6db87b0f404d96d606aa56dc3141aa Mon Sep 17 00:00:00 2001 From: Sergio Spinatelli Date: Tue, 22 Feb 2011 22:38:21 +0100 Subject: [PATCH] Search results update when changing folder --- postler/postler-bureau.vala | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/postler/postler-bureau.vala b/postler/postler-bureau.vala index c3d2f26..33a88d7 100644 --- a/postler/postler-bureau.vala +++ b/postler/postler-bureau.vala @@ -538,6 +538,11 @@ public class Postler.Bureau : Gtk.Window { show_fetch_error_infobar (account, error_message); } + bool change_search () { + search.activate (); + return false; + } + public Bureau () { GLib.Object (icon_name: STOCK_INTERNET_MAIL, title: GLib.Environment.get_application_name ()); @@ -638,6 +643,8 @@ 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.Timeout.add (0, change_search); }); var folderbox = new Gtk.HBox (false, 4); var scrolled = new Postler.ScrolledWindow (folders); -- 1.7.1