Focus the text view, so the tool bar won't have focus.

2003-08-27  Anders Carlsson  <andersca@gnome.org>

	* demos/gtk-demo/appwindow.c (do_appwindow): Focus the
	text view, so the tool bar won't have focus.
This commit is contained in:
Anders Carlsson
2003-08-27 17:18:50 +00:00
committed by Anders Carlsson
parent ccdf6b9bc9
commit bebc663c5a
6 changed files with 27 additions and 1 deletions

View File

@ -347,7 +347,8 @@ do_appwindow (void)
200, 200);
contents = gtk_text_view_new ();
gtk_widget_grab_focus (contents);
gtk_container_add (GTK_CONTAINER (sw),
contents);