[gedit] Fix the size of the progress bar in the info bar. Fixes bug #643729



commit fea37271c5cacc36a6434f779874e7c754a1c608
Author: Benjamin Otte <otte redhat com>
Date:   Mon Apr 4 10:12:17 2011 +0200

    Fix the size of the progress bar in the info bar. Fixes bug #643729

 gedit/gedit-progress-info-bar.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gedit/gedit-progress-info-bar.c b/gedit/gedit-progress-info-bar.c
index 8fb65c5..33d72fd 100644
--- a/gedit/gedit-progress-info-bar.c
+++ b/gedit/gedit-progress-info-bar.c
@@ -125,7 +125,7 @@ gedit_progress_info_bar_init (GeditProgressInfoBar *bar)
 
 	hbox = gtk_hbox_new (FALSE, 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 (GTK_STOCK_MISSING_IMAGE, 
 							 GTK_ICON_SIZE_SMALL_TOOLBAR);
@@ -135,15 +135,16 @@ gedit_progress_info_bar_init (GeditProgressInfoBar *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_misc_set_alignment (GTK_MISC (bar->priv->label), 0, 0.5);
 	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));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]