diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-05-02 17:26:54 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-05-04 22:53:08 -0400 |
commit | f59f3551902268600090c0382068103a09184df0 (patch) | |
tree | aa006e0f33df61b714d68d2931f7a3bc64933fac /testsuite/reftests | |
parent | b9b1bf85e19fb31fcff2ab6b0dce8d0fffea7e01 (diff) | |
download | gtk+-f59f3551902268600090c0382068103a09184df0.tar.gz |
Use gtk_window_set_child throughout
Replace all uses of gtk_container_add on windows
by gtk_window_set_child.
Diffstat (limited to 'testsuite/reftests')
-rw-r--r-- | testsuite/reftests/set-default-direction.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/testsuite/reftests/set-default-direction.c b/testsuite/reftests/set-default-direction.c index 468d3dc922..0784edc0bd 100644 --- a/testsuite/reftests/set-default-direction.c +++ b/testsuite/reftests/set-default-direction.c @@ -80,9 +80,6 @@ swap_child (GtkWidget *window) { GtkWidget *image; - gtk_container_remove (GTK_CONTAINER (window), gtk_bin_get_child (GTK_BIN (window))); - image = gtk_image_new_from_icon_name ("go-next"); - gtk_widget_show (image); - gtk_container_add (GTK_CONTAINER (window), image); + gtk_window_set_child (GTK_WINDOW (window), image); } |