summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-10-06 19:38:16 -0400
committerMatthias Clasen <mclasen@redhat.com>2017-10-06 19:38:16 -0400
commitad9c70537dfd65e49d5e64b8c100fb7d74eea347 (patch)
tree5765dc2a083827fd4f8bafafedeefd29350da3e4 /demos
parentb5fe4c0a1d8d11b198a3e56f5bc165e963b2d277 (diff)
downloadgtk+-ad9c70537dfd65e49d5e64b8c100fb7d74eea347.tar.gz
gtk-demo: Fix the assistant demo
The progress bar was no longer expanding as intended, due to the demise of GtkBox::expand.
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/assistant.c5
1 files changed, 4 insertions, 1 deletions
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);