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 /tests/testtreesort.c | |
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 'tests/testtreesort.c')
-rw-r--r-- | tests/testtreesort.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testtreesort.c b/tests/testtreesort.c index 4cf6904897..dbb6ad52df 100644 --- a/tests/testtreesort.c +++ b/tests/testtreesort.c @@ -123,7 +123,7 @@ main (int argc, char *argv[]) g_signal_connect (window, "destroy", G_CALLBACK (quit_cb), &done); vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); gtk_container_add (GTK_CONTAINER (vbox), gtk_label_new ("Jonathan and Kristian's list of cool words. (And Anders' cool list of numbers) \n\nThis is just a GtkTreeStore")); - gtk_container_add (GTK_CONTAINER (window), vbox); + gtk_window_set_child (GTK_WINDOW (window), vbox); entry = gtk_entry_new (); gtk_container_add (GTK_CONTAINER (vbox), entry); @@ -252,7 +252,7 @@ main (int argc, char *argv[]) vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); gtk_container_add (GTK_CONTAINER (vbox2), gtk_label_new ("Jonathan and Kristian's list of words.\n\nA GtkTreeModelSort wrapping the GtkTreeStore of window 1")); - gtk_container_add (GTK_CONTAINER (window2), vbox2); + gtk_window_set_child (GTK_WINDOW (window2), vbox2); scrolled_window2 = gtk_scrolled_window_new (NULL, NULL); gtk_scrolled_window_set_has_frame (GTK_SCROLLED_WINDOW (scrolled_window2), TRUE); @@ -319,7 +319,7 @@ main (int argc, char *argv[]) vbox3 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); gtk_container_add (GTK_CONTAINER (vbox3), gtk_label_new ("Jonathan and Kristian's list of words.\n\nA GtkTreeModelSort wrapping the GtkTreeModelSort of window 2")); - gtk_container_add (GTK_CONTAINER (window3), vbox3); + gtk_window_set_child (GTK_WINDOW (window3), vbox3); scrolled_window3 = gtk_scrolled_window_new (NULL, NULL); gtk_scrolled_window_set_has_frame (GTK_SCROLLED_WINDOW (scrolled_window3), TRUE); |