[evolution-patches] Patch for #72545



hi, Not Zed

Here is the patch for #72545
the related URL is:
http://bugzilla.ximian.com/show_bug.cgi?id=72545

Will you please help me to review it?

Thanks a lot.

Yours,
Mengjie
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/mail/ChangeLog,v
retrieving revision 1.3589
diff -u -p -r1.3589 ChangeLog
--- ChangeLog	24 Feb 2005 02:20:32 -0000	1.3589
+++ ChangeLog	24 Feb 2005 10:46:32 -0000
@@ -1,3 +1,10 @@
+2005-02-24  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-21  Not Zed  <NotZed Ximian com>
 
 	** See bug #71528.
Index: em-folder-browser.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/em-folder-browser.c,v
retrieving revision 1.57
diff -u -p -r1.57 em-folder-browser.c
--- em-folder-browser.c	1 Feb 2005 19:30:49 -0000	1.57
+++ em-folder-browser.c	24 Feb 2005 10:46:35 -0000
@@ -546,9 +546,15 @@ emfb_edit_invert_selection(BonoboUICompo
 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]