[Commits] compose.c 1.382.2.606 1.382.2.607

ticho at claws-mail.org ticho at claws-mail.org
Sun Aug 5 14:40:23 CEST 2012


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

Modified Files:
      Tag: gtk2
	compose.c 
Log Message:
2012-08-05 [ticho]	3.8.1cvs25

	* src/compose.c
		Avoid header combo box to get focus twice (first text within,
		then combobox widget itself) when switching focus with TAB.

Index: compose.c
===================================================================
RCS file: /home/claws-mail/claws/src/compose.c,v
retrieving revision 1.382.2.606
retrieving revision 1.382.2.607
diff -u -d -r1.382.2.606 -r1.382.2.607
--- compose.c	28 Jul 2012 18:13:46 -0000	1.382.2.606
+++ compose.c	5 Aug 2012 12:40:20 -0000	1.382.2.607
@@ -6659,6 +6659,11 @@
 	g_signal_connect(G_OBJECT(gtk_bin_get_child(GTK_BIN(combo))), "grab_focus",
 			 G_CALLBACK(compose_grab_focus_cb), compose);
 	gtk_widget_show(combo);
+	
+	GList *l = NULL;
+	l = g_list_prepend(l, gtk_bin_get_child(GTK_BIN(combo)));
+	gtk_container_set_focus_chain(GTK_CONTAINER(combo), l);
+	g_list_free(l);
 
 	gtk_table_attach(GTK_TABLE(compose->header_table), combo, 0, 1,
 			compose->header_nextrow, compose->header_nextrow+1,



More information about the Commits mailing list