aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-view.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-21 06:09:34 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-21 06:09:34 +0800
commit5d12f06367a0939387381f66cea77766a873aea6 (patch)
tree221b29a45e7e52481a4638d12cdf8e8253bb9ce1 /mail/em-folder-view.c
parent23f58b3f17ce7ba08a8bd3f6066f62f0f454bacf (diff)
downloadgsoc2013-evolution-5d12f06367a0939387381f66cea77766a873aea6.tar
gsoc2013-evolution-5d12f06367a0939387381f66cea77766a873aea6.tar.gz
gsoc2013-evolution-5d12f06367a0939387381f66cea77766a873aea6.tar.bz2
gsoc2013-evolution-5d12f06367a0939387381f66cea77766a873aea6.tar.lz
gsoc2013-evolution-5d12f06367a0939387381f66cea77766a873aea6.tar.xz
gsoc2013-evolution-5d12f06367a0939387381f66cea77766a873aea6.tar.zst
gsoc2013-evolution-5d12f06367a0939387381f66cea77766a873aea6.zip
Bug 580925 – Better search bar for word searches
Make the word search bar more like Firefox and get rid of the "Current Message" search scope in the folder search bar. Shift+Ctrl+F now activates the word search bar.
Diffstat (limited to 'mail/em-folder-view.c')
-rw-r--r--mail/em-folder-view.c24
1 files changed, 15 insertions, 9 deletions
diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c
index e31d8d727c..62bab8a48f 100644
--- a/mail/em-folder-view.c
+++ b/mail/em-folder-view.c
@@ -956,7 +956,7 @@ emfv_popup_flag_completed(EPopup *ep, EPopupItem *pitem, void *data)
em_utils_flag_for_followup_completed((GtkWidget *)emfv, emfv->folder, uids);
if (emfv->preview)
- em_format_redraw (emfv->preview);
+ em_format_redraw (EM_FORMAT (emfv->preview));
}
static void
@@ -968,7 +968,7 @@ emfv_popup_flag_clear(EPopup *ep, EPopupItem *pitem, void *data)
em_utils_flag_for_followup_clear((GtkWidget *)emfv, emfv->folder, uids);
if (emfv->preview)
- em_format_redraw (emfv->preview);
+ em_format_redraw (EM_FORMAT (emfv->preview));
}
static void
@@ -1808,13 +1808,7 @@ emfv_message_search(BonoboUIComponent *uic, void *data, const char *path)
{
EMFolderView *emfv = data;
- if (!emfv->list_active) /* We are in new mail window */
- em_format_html_display_search(emfv->preview);
- else {
- /* We are in top level. Just grab focus to Search Bar */
- gtk_widget_grab_focus (((ESearchBar *)((EMFolderBrowser *) emfv)->search)->entry);
- gtk_option_menu_set_history (GTK_OPTION_MENU (((ESearchBar *)((EMFolderBrowser *) emfv)->search)->scopeoption), 3);
- }
+ em_folder_view_show_search_bar (emfv);
}
static void
@@ -3271,3 +3265,15 @@ emfv_on_html_button_released_cb (GtkHTML *html, GdkEventButton *button, EMFolder
return FALSE;
}
+void
+em_folder_view_show_search_bar (EMFolderView *emfv)
+{
+ EMFolderViewClass *class;
+
+ g_return_if_fail (EM_IS_FOLDER_VIEW (emfv));
+
+ class = EM_FOLDER_VIEW_GET_CLASS (emfv);
+ g_return_if_fail (class->show_search_bar != NULL);
+
+ class->show_search_bar (emfv);
+}