[Commits] messageview.c 1.94.2.240 1.94.2.241

colin at claws-mail.org colin at claws-mail.org
Mon Nov 12 20:22:45 CET 2012


Update of /home/claws-mail/claws/src
In directory srv:/tmp/cvs-serv16815/src

Modified Files:
      Tag: gtk2
	messageview.c 
Log Message:
2012-11-12 [colin]	3.8.1cvs118

	* src/messageview.c
		Fix initial focus on textview. Fixes bug #2776,
		"Make all menu shortcuts work properly in the message window"

Index: messageview.c
===================================================================
RCS file: /home/claws-mail/claws/src/messageview.c,v
retrieving revision 1.94.2.240
retrieving revision 1.94.2.241
diff -u -d -r1.94.2.240 -r1.94.2.241
--- messageview.c	31 Oct 2012 10:25:17 -0000	1.94.2.240
+++ messageview.c	12 Nov 2012 19:22:43 -0000	1.94.2.241
@@ -758,7 +758,6 @@
 	messageview_add_toolbar(msgview, window);
 
 	if (show) {
-		gtk_widget_grab_focus(msgview->mimeview->textview->text);
 		gtk_widget_show(window);
 	} else {
 		gtk_widget_realize(window);
@@ -772,6 +771,11 @@
 			  prefs_common.toolbar_style);
 	messageview_init(msgview);
 
+	if (show) {
+		GTK_EVENTS_FLUSH();
+		gtk_widget_grab_focus(msgview->mimeview->textview->text);
+	}
+
 	return msgview;
 }
 



More information about the Commits mailing list