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
This commit is contained in:
Mengjie Yu
2005-02-25 09:26:56 +00:00
committed by Harry Lu
parent 658dcc0fc8
commit 05c4087326
2 changed files with 15 additions and 2 deletions

View File

@ -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

View File

@ -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