xed-progress-info-bar: Properly expand the progress bar
This commit is contained in:
parent
3496c88947
commit
ab8bf81cc3
|
@ -140,7 +140,7 @@ xed_progress_info_bar_init (XedProgressInfoBar *bar)
|
||||||
|
|
||||||
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
|
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
|
||||||
gtk_widget_show (hbox);
|
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);
|
bar->priv->image = gtk_image_new_from_icon_name ("image-missing", GTK_ICON_SIZE_SMALL_TOOLBAR);
|
||||||
gtk_widget_show (bar->priv->image);
|
gtk_widget_show (bar->priv->image);
|
||||||
|
@ -150,14 +150,15 @@ xed_progress_info_bar_init (XedProgressInfoBar *bar)
|
||||||
|
|
||||||
bar->priv->label = gtk_label_new ("");
|
bar->priv->label = gtk_label_new ("");
|
||||||
gtk_widget_show (bar->priv->label);
|
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_label_set_use_markup (GTK_LABEL (bar->priv->label), TRUE);
|
||||||
gtk_widget_set_halign (bar->priv->label, GTK_ALIGN_START);
|
gtk_widget_set_halign (bar->priv->label, GTK_ALIGN_START);
|
||||||
gtk_label_set_ellipsize (GTK_LABEL (bar->priv->label), PANGO_ELLIPSIZE_END);
|
gtk_label_set_ellipsize (GTK_LABEL (bar->priv->label), PANGO_ELLIPSIZE_END);
|
||||||
|
|
||||||
bar->priv->progress = gtk_progress_bar_new ();
|
bar->priv->progress = gtk_progress_bar_new ();
|
||||||
|
gtk_widget_set_hexpand (bar->priv->progress, TRUE);
|
||||||
gtk_widget_show (bar->priv->progress);
|
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);
|
gtk_widget_set_size_request (bar->priv->progress, -1, 15);
|
||||||
|
|
||||||
content = gtk_info_bar_get_content_area (GTK_INFO_BAR (bar));
|
content = gtk_info_bar_get_content_area (GTK_INFO_BAR (bar));
|
||||||
|
|
Loading…
Reference in New Issue