diff options
author | Mengjie Yu <meng-jie.yu@sun.com> | 2005-02-25 17:26:56 +0800 |
---|---|---|
committer | Harry Lu <haip@src.gnome.org> | 2005-02-25 17:26:56 +0800 |
commit | 05c4087326c88277be5644eb63e6200d8104f3cb (patch) | |
tree | ea5602876b3de0bda8b81ad7636adc9cb9185ad3 | |
parent | 658dcc0fc89eb79a23bf3894975b9f758f4a1e33 (diff) | |
download | gsoc2013-evolution-05c4087326c88277be5644eb63e6200d8104f3cb.tar.gz gsoc2013-evolution-05c4087326c88277be5644eb63e6200d8104f3cb.tar.zst gsoc2013-evolution-05c4087326c88277be5644eb63e6200d8104f3cb.zip |
make the 'select all' work in all conditions.
2005-02-25 Mengjie Yu <meng-jie.yu@sun.com>
* em-folder-browser.c: (emfb_edit_select_all):make the 'select all'
work in all conditions.
Fixes #72545
svn path=/trunk/; revision=28887
-rw-r--r-- | mail/ChangeLog | 7 | ||||
-rw-r--r-- | mail/em-folder-browser.c | 10 |
2 files changed, 15 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index ddf6355bcc..f2e977bdaa 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,10 @@ +2005-02-25 Mengjie Yu <meng-jie.yu@sun.com> + + * em-folder-browser.c: (emfb_edit_select_all):make the 'select all' + work in all conditions. + + Fixes #72545 + 2005-02-24 Not Zed <NotZed@Ximian.com> ** See bug #68459 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 |