aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/mail-callbacks.c10
2 files changed, 13 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index e290338c9b..9af22c8c31 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,9 @@
+2002-01-24 Jeffrey Stedfast <fejj@ximian.com>
+
+ * mail-callbacks.c (select_all): If the mail-display is in focus,
+ then select-all in the mail display rather than the
+ message-list. Fixes bug #19126.
+
2002-01-23 Ettore Perazzoli <ettore@ximian.com>
* component-factory.c (create_component): Pass a NULL icon to
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 */