mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
focus test: Use a GtkText instead
Thats where the focus is nowadays.
This commit is contained in:
parent
996a4246fb
commit
102c0ce696
@ -12,10 +12,10 @@ test_window_focus (void)
|
||||
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
|
||||
gtk_container_add (GTK_CONTAINER (window), box);
|
||||
gtk_container_add (GTK_CONTAINER (box), gtk_label_new ("label1"));
|
||||
entry1 = gtk_entry_new ();
|
||||
entry1 = gtk_text_new ();
|
||||
gtk_container_add (GTK_CONTAINER (box), entry1);
|
||||
gtk_container_add (GTK_CONTAINER (box), gtk_label_new ("label2"));
|
||||
entry2 = gtk_entry_new ();
|
||||
entry2 = gtk_text_new ();
|
||||
gtk_container_add (GTK_CONTAINER (box), entry2);
|
||||
|
||||
g_assert_null (gtk_window_get_focus (GTK_WINDOW (window)));
|
||||
|
Loading…
Reference in New Issue
Block a user