aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-browser.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-folder-browser.c')
-rw-r--r--mail/em-folder-browser.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/mail/em-folder-browser.c b/mail/em-folder-browser.c
index c0b9d92529..dd9ebf24c4 100644
--- a/mail/em-folder-browser.c
+++ b/mail/em-folder-browser.c
@@ -546,9 +546,15 @@ emfb_edit_invert_selection(BonoboUIComponent *uid, void *data, const char *path)
static void
emfb_edit_select_all(BonoboUIComponent *uid, void *data, const char *path)
{
- EMFolderView *emfv = data;
+ EMFolderBrowser *emfb = data;
- message_list_select_all(emfv->list);
+ if (GTK_WIDGET_HAS_FOCUS(((ESearchBar *)emfb->search)->entry))
+ gtk_editable_select_region ((GtkEditable *) (((ESearchBar *)emfb->search)->entry), 0, -1);
+ else if (GTK_WIDGET_HAS_FOCUS(emfb->view.preview->formathtml.html))
+ gtk_html_select_all (emfb->view.preview->formathtml.html);
+ else
+ message_list_select_all(emfb->view.list);
+
}
static void