diff options
author | Timm Bäder <mail@baedert.org> | 2018-12-26 08:20:34 +0100 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-01-23 19:30:46 -0500 |
commit | bd71e744d2e5dbd853f0c719dd3ebe6abb2f72b6 (patch) | |
tree | 6478bd038c42a535caacf65f948892a9d0dfe5e9 /tests/testtreeflow.c | |
parent | 09361e76659bd1951a222cd64537abacc6a6f44a (diff) | |
download | gtk+-bd71e744d2e5dbd853f0c719dd3ebe6abb2f72b6.tar.gz |
Stop using gtk_box_pack_end
It might soon go away!
Diffstat (limited to 'tests/testtreeflow.c')
-rw-r--r-- | tests/testtreeflow.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/testtreeflow.c b/tests/testtreeflow.c index 6a6e4cca96..6155744595 100644 --- a/tests/testtreeflow.c +++ b/tests/testtreeflow.c @@ -134,14 +134,14 @@ main (int argc, char *argv[]) gtk_window_set_title (GTK_WINDOW (window), "Reflow test"); g_signal_connect (window, "destroy", gtk_main_quit, NULL); vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); - gtk_box_pack_start (GTK_BOX (vbox), gtk_label_new ("Incremental Reflow Test")); + gtk_container_add (GTK_CONTAINER (vbox), gtk_label_new ("Incremental Reflow Test")); gtk_container_add (GTK_CONTAINER (window), vbox); scrolled_window = gtk_scrolled_window_new (NULL, NULL); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_widget_set_vexpand (scrolled_window, TRUE); - gtk_box_pack_start (GTK_BOX (vbox), scrolled_window); + gtk_container_add (GTK_CONTAINER (vbox), scrolled_window); initialize_model (); tree_view = gtk_tree_view_new_with_model (model); @@ -157,9 +157,9 @@ main (int argc, char *argv[]) NULL); gtk_container_add (GTK_CONTAINER (scrolled_window), tree_view); hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); - gtk_box_pack_start (GTK_BOX (vbox), hbox); + gtk_container_add (GTK_CONTAINER (vbox), hbox); button = gtk_button_new_with_mnemonic ("<b>_Futz!!</b>"); - gtk_box_pack_start (GTK_BOX (hbox), button); + gtk_container_add (GTK_CONTAINER (hbox), button); gtk_label_set_use_markup (GTK_LABEL (gtk_bin_get_child (GTK_BIN (button))), TRUE); g_signal_connect (button, "clicked", G_CALLBACK (futz), NULL); g_signal_connect (button, "realize", G_CALLBACK (gtk_widget_grab_focus), NULL); |