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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index 7a6b751842..78397a9138 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -259,6 +259,14 @@ search_activate(GtkEntry *entry, FolderBrowser *fb)
search_set(fb);
}
+void
+folder_browser_clear_search (FolderBrowser *fb)
+{
+ gtk_entry_set_text (GTK_ENTRY (fb->search_entry), "");
+ gtk_option_menu_set_history (GTK_OPTION_MENU (fb->search_menu), 0);
+ message_list_set_search (fb->message_list, NULL);
+}
+
static int
etable_key (ETable *table, int row, int col, GdkEvent *ev, FolderBrowser *fb)
{