From 57af36acc798853c67727da285f8a85d5f776675 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 24 Jan 2002 20:09:04 +0000 Subject: If the mail-display is in focus, then select-all in the mail display 2002-01-24 Jeffrey Stedfast * 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. svn path=/trunk/; revision=15456 --- mail/ChangeLog | 6 ++++++ mail/mail-callbacks.c | 10 +++++++--- 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 + + * 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 * 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 */ -- cgit v1.2.3