summaryrefslogtreecommitdiff
path: root/tests/testappchooser.c
diff options
context:
space:
mode:
authorAlexander Mikhaylenko <alexm@gnome.org>2020-05-11 02:46:28 +0500
committerAlexander Mikhaylenko <alexm@gnome.org>2020-05-11 02:47:40 +0500
commit31e3c1e362d38ac94a081016222e37cace51569a (patch)
treeae40fc8c13e34df87f1a476ccfd5a0bf86d71736 /tests/testappchooser.c
parent1c03745ee40ff190855fa4d42cea5e926a9e4e0f (diff)
downloadgtk+-31e3c1e362d38ac94a081016222e37cace51569a.tar.gz
tests: Fix testappchooser test
Don't assume GtkWindow is a container.
Diffstat (limited to 'tests/testappchooser.c')
-rw-r--r--tests/testappchooser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testappchooser.c b/tests/testappchooser.c
index 82eda9d4ca..7735cdec80 100644
--- a/tests/testappchooser.c
+++ b/tests/testappchooser.c
@@ -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);