diff options
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r-- | mail/mail-callbacks.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index e367ab4638..ded0116bbc 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -1534,9 +1534,13 @@ select_all (BonoboUIComponent *uih, void *user_data, const char *path) if (FOLDER_BROWSER_IS_DESTROYED (fb)) return; - etsm = e_tree_get_selection_model (fb->message_list->tree); - - e_selection_model_select_all (etsm); + if (GTK_WIDGET_HAS_FOCUS (fb->mail_display->html)) { + gtk_html_select_all (fb->mail_display->html); + } else { + etsm = e_tree_get_selection_model (fb->message_list->tree); + + e_selection_model_select_all (etsm); + } } /* Thread selection */ |