summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-02-04 12:44:55 -0500
committerMatthias Clasen <mclasen@redhat.com>2019-02-04 12:44:55 -0500
commit51207489813ebef7f143dcded70fab4a3edff612 (patch)
treee45da36bd09946f2dc21d44ab78510bf28c6c6c4 /examples
parent25e199e7b789894f020ec740ff4a9419207f6a61 (diff)
downloadgtk+-51207489813ebef7f143dcded70fab4a3edff612.tar.gz
Drop GtkButtonBox
This widget does not seem worth keeping, and we want to get rid of child properties.
Diffstat (limited to 'examples')
-rw-r--r--examples/hello-world.c8
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);
}