From ad9c70537dfd65e49d5e64b8c100fb7d74eea347 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 6 Oct 2017 19:38:16 -0400 Subject: gtk-demo: Fix the assistant demo The progress bar was no longer expanding as intended, due to the demise of GtkBox::expand. --- demos/gtk-demo/assistant.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'demos') diff --git a/demos/gtk-demo/assistant.c b/demos/gtk-demo/assistant.c index a1c0837e9a..c39d0b2b37 100644 --- a/demos/gtk-demo/assistant.c +++ b/demos/gtk-demo/assistant.c @@ -144,8 +144,11 @@ static void create_page4 (GtkWidget *assistant) { progress_bar = gtk_progress_bar_new (); - gtk_widget_set_halign (progress_bar, GTK_ALIGN_CENTER); + gtk_widget_set_halign (progress_bar, GTK_ALIGN_FILL); gtk_widget_set_valign (progress_bar, GTK_ALIGN_CENTER); + gtk_widget_set_hexpand (progress_bar, TRUE); + gtk_widget_set_margin_start (progress_bar, 40); + gtk_widget_set_margin_end (progress_bar, 40); gtk_widget_show (progress_bar); gtk_assistant_append_page (GTK_ASSISTANT (assistant), progress_bar); -- cgit v1.2.1