diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-02-05 13:06:09 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-02-05 13:06:09 +0000 |
commit | 3489ed087dc25d0a452c21a26659f6cdbe67c2cf (patch) | |
tree | 22b7bd8909979b4415496c372d7ca2ff1c14ebfa /examples | |
parent | ca1ffa0c23d01a65fa4c922ab3b273300ba7c055 (diff) | |
parent | 32e61b955acfa544ef7b4b6c47eb73653306bd05 (diff) | |
download | gtk+-3489ed087dc25d0a452c21a26659f6cdbe67c2cf.tar.gz |
Merge branch 'kill-buttonbox' into 'master'
Drop GtkButtonBox
See merge request GNOME/gtk!554
Diffstat (limited to 'examples')
-rw-r--r-- | examples/hello-world.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/hello-world.c b/examples/hello-world.c index f6cb55bc3c..4005d66ca9 100644 --- a/examples/hello-world.c +++ b/examples/hello-world.c @@ -13,19 +13,19 @@ activate (GtkApplication *app, { GtkWidget *window; GtkWidget *button; - GtkWidget *button_box; + GtkWidget *box; window = gtk_application_window_new (app); gtk_window_set_title (GTK_WINDOW (window), "Window"); gtk_window_set_default_size (GTK_WINDOW (window), 200, 200); - button_box = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL); - gtk_container_add (GTK_CONTAINER (window), button_box); + box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); + gtk_container_add (GTK_CONTAINER (window), box); button = gtk_button_new_with_label ("Hello World"); g_signal_connect (button, "clicked", G_CALLBACK (print_hello), NULL); g_signal_connect_swapped (button, "clicked", G_CALLBACK (gtk_widget_destroy), window); - gtk_container_add (GTK_CONTAINER (button_box), button); + gtk_container_add (GTK_CONTAINER (box), button); gtk_widget_show (window); } |