diff options
author | Alexander Mikhaylenko <alexm@gnome.org> | 2020-05-11 02:46:28 +0500 |
---|---|---|
committer | Alexander Mikhaylenko <alexm@gnome.org> | 2020-05-11 02:47:40 +0500 |
commit | 31e3c1e362d38ac94a081016222e37cace51569a (patch) | |
tree | ae40fc8c13e34df87f1a476ccfd5a0bf86d71736 /tests/testappchooser.c | |
parent | 1c03745ee40ff190855fa4d42cea5e926a9e4e0f (diff) | |
download | gtk+-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.c | 2 |
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); |