[evolution-patches] fix for bug #43972



No sense wrapping the e_tree invert selection code with IS_FOCUSED stuff
since:

1. it will never be focused, the menu is what will be focused (new in
gtk2?)
2. the etree is the only mail-display widget that implements this
functionality (gtkhtml does not afaik)

Jeff

-- 
Jeffrey Stedfast
Evolution Hacker - Ximian, Inc.
fejj ximian com  - www.ximian.com
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/mail/ChangeLog,v
retrieving revision 1.2743
diff -u -r1.2743 ChangeLog
--- ChangeLog	2 Jun 2003 17:50:25 -0000	1.2743
+++ ChangeLog	4 Jun 2003 22:27:37 -0000
@@ -1,3 +1,10 @@
+2003-06-04  Jeffrey Stedfast  <fejj ximian com>
+
+	* mail-callbacks.c (invert_selection): Get rid of the if-focused
+	code, that will always prevent the etree from getting the
+	selection inverted because the menu item will always have focus at
+	this time.
+
 2003-06-02  Not Zed  <NotZed Ximian com>
 
 	** This and jeffs patch for #43862.
Index: mail-callbacks.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/mail-callbacks.c,v
retrieving revision 1.444
diff -u -r1.444 mail-callbacks.c
--- mail-callbacks.c	21 May 2003 15:27:53 -0000	1.444
+++ mail-callbacks.c	4 Jun 2003 22:27:37 -0000
@@ -1960,11 +1979,9 @@
 	if (FOLDER_BROWSER_IS_DESTROYED (fb))
 		return;
 	
-	if (GTK_WIDGET_HAS_FOCUS (fb->message_list)) {
-		etsm = e_tree_get_selection_model (fb->message_list->tree);
-		
-		e_selection_model_invert_selection (etsm);
-	}
+	etsm = e_tree_get_selection_model (fb->message_list->tree);
+	
+	e_selection_model_invert_selection (etsm);
 }
 
 /* flag all selected messages. Return number flagged */


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