aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r--mail/folder-browser.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index 53b410c9b0..c104cc2c17 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -1185,6 +1185,15 @@ folder_browser_search_do_search (ESearchBar *esb, FolderBrowser *fb)
return;
}
+static void
+folder_browser_query_changed (ESearchBar *esb, FolderBrowser *fb)
+{
+ if (e_search_bar_get_item_id (esb) != E_FILTERBAR_ADVANCED_ID)
+ return;
+
+ folder_browser_search_do_search (esb, fb);
+}
+
void
folder_browser_toggle_preview (BonoboUIComponent *component,
const char *path,
@@ -2289,7 +2298,7 @@ folder_browser_gui_init (FolderBrowser *fb)
gtk_signal_connect (GTK_OBJECT (fb->search), "search_activated",
GTK_SIGNAL_FUNC (folder_browser_search_do_search), fb);
gtk_signal_connect (GTK_OBJECT (fb->search), "query_changed",
- GTK_SIGNAL_FUNC (folder_browser_search_do_search), fb);
+ GTK_SIGNAL_FUNC (folder_browser_query_changed), fb);
gtk_table_attach (GTK_TABLE (fb), GTK_WIDGET (fb->search),