tests: Fix testappchooser test

Don't assume GtkWindow is a container.
This commit is contained in:
Alexander Mikhaylenko 2020-05-11 02:46:28 +05:00
parent 1c03745ee4
commit 31e3c1e362

View File

@ -230,7 +230,7 @@ main (int argc, char **argv)
g_signal_connect (open, "clicked",
G_CALLBACK (display_dialog), NULL);
gtk_container_add (GTK_CONTAINER (toplevel), grid);
gtk_window_set_child (GTK_WINDOW (toplevel), grid);
gtk_widget_show (toplevel);
g_signal_connect (toplevel, "destroy", G_CALLBACK (quit_cb), &done);