From ab8bf81cc396ae0569611af229975a328d9c0475 Mon Sep 17 00:00:00 2001 From: JosephMcc Date: Sun, 5 Feb 2017 03:20:35 -0800 Subject: [PATCH] xed-progress-info-bar: Properly expand the progress bar --- xed/xed-progress-info-bar.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xed/xed-progress-info-bar.c b/xed/xed-progress-info-bar.c index b89fb3f..837be74 100644 --- a/xed/xed-progress-info-bar.c +++ b/xed/xed-progress-info-bar.c @@ -140,7 +140,7 @@ xed_progress_info_bar_init (XedProgressInfoBar *bar) hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4); gtk_widget_show (hbox); - gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0); bar->priv->image = gtk_image_new_from_icon_name ("image-missing", GTK_ICON_SIZE_SMALL_TOOLBAR); gtk_widget_show (bar->priv->image); @@ -150,14 +150,15 @@ xed_progress_info_bar_init (XedProgressInfoBar *bar) bar->priv->label = gtk_label_new (""); gtk_widget_show (bar->priv->label); - gtk_box_pack_start (GTK_BOX (hbox), bar->priv->label, TRUE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (hbox), bar->priv->label, FALSE, TRUE, 0); gtk_label_set_use_markup (GTK_LABEL (bar->priv->label), TRUE); gtk_widget_set_halign (bar->priv->label, GTK_ALIGN_START); gtk_label_set_ellipsize (GTK_LABEL (bar->priv->label), PANGO_ELLIPSIZE_END); bar->priv->progress = gtk_progress_bar_new (); + gtk_widget_set_hexpand (bar->priv->progress, TRUE); gtk_widget_show (bar->priv->progress); - gtk_box_pack_start (GTK_BOX (vbox), bar->priv->progress, TRUE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (vbox), bar->priv->progress, FALSE, TRUE, 0); gtk_widget_set_size_request (bar->priv->progress, -1, 15); content = gtk_info_bar_get_content_area (GTK_INFO_BAR (bar));