diff options
author | Dan Winship <danw@src.gnome.org> | 2000-06-16 01:31:53 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-06-16 01:31:53 +0800 |
commit | 94f0df746e8ca9782879646c4c256e829cc9421d (patch) | |
tree | 323cf964782c506ed57ba08064a61fc52c718773 /mail/folder-browser.c | |
parent | 86c38b418e5b2e6aac95409c40c073f60115e22e (diff) | |
download | gsoc2013-evolution-94f0df746e8ca9782879646c4c256e829cc9421d.tar.gz gsoc2013-evolution-94f0df746e8ca9782879646c4c256e829cc9421d.tar.zst gsoc2013-evolution-94f0df746e8ca9782879646c4c256e829cc9421d.zip |
New function to revert back to non-searching mode.
* folder-browser.c (folder_browser_clear_search): New function to
revert back to non-searching mode.
* mail-ops.c (fetch_mail): Use folder_browser_clear_search.
svn path=/trunk/; revision=3576
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r-- | mail/folder-browser.c | 8 |
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) { |