diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-01-25 04:09:04 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-01-25 04:09:04 +0800 |
commit | 57af36acc798853c67727da285f8a85d5f776675 (patch) | |
tree | 65d88d08b014530b9128a0d9eda5d7159cffd05e /mail/mail-callbacks.c | |
parent | 7c9e80dd308222afbdec1068a925e4800f13dfb5 (diff) | |
download | gsoc2013-evolution-57af36acc798853c67727da285f8a85d5f776675.tar.gz gsoc2013-evolution-57af36acc798853c67727da285f8a85d5f776675.tar.zst gsoc2013-evolution-57af36acc798853c67727da285f8a85d5f776675.zip |
If the mail-display is in focus, then select-all in the mail display
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.
svn path=/trunk/; revision=15456
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 */ |