[Xfce4-commits] <thunar:shared-progress-dialog> Ellipsize the title and progress labels in the middle.

Jannis Pohlmann jannis at xfce.org
Sat Sep 12 19:26:03 CEST 2009


Updating branch refs/heads/shared-progress-dialog
         to f6ffe526899a8a0528be175b6619b4615ec141d3 (commit)
       from 9a3adb2cfb84fcf15d31cbbcc1cac8c2cff400ad (commit)

commit f6ffe526899a8a0528be175b6619b4615ec141d3
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Sat Sep 12 19:25:16 2009 +0200

    Ellipsize the title and progress labels in the middle.

 thunar/thunar-progress-view.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/thunar/thunar-progress-view.c b/thunar/thunar-progress-view.c
index 5a0f989..854bb18 100644
--- a/thunar/thunar-progress-view.c
+++ b/thunar/thunar-progress-view.c
@@ -181,7 +181,7 @@ thunar_progress_view_init (ThunarProgressView *view)
   gtk_widget_show (vbox);
 
   hbox = gtk_hbox_new (FALSE, 12);
-  gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0);
+  gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0);
   gtk_widget_show (hbox);
 
   image = g_object_new (GTK_TYPE_IMAGE, "icon-size", GTK_ICON_SIZE_BUTTON, NULL);
@@ -189,16 +189,18 @@ thunar_progress_view_init (ThunarProgressView *view)
   gtk_widget_show (image);
 
   vbox2 = gtk_vbox_new (FALSE, 6);
-  gtk_box_pack_start (GTK_BOX (hbox), vbox2, FALSE, TRUE, 0);
+  gtk_box_pack_start (GTK_BOX (hbox), vbox2, TRUE, TRUE, 0);
   gtk_widget_show (vbox2);
 
   label = g_object_new (GTK_TYPE_LABEL, "xalign", 0.0f, NULL);
   gtk_label_set_attributes (GTK_LABEL (label), thunar_pango_attr_list_big_bold ());
+  gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_MIDDLE);
   gtk_box_pack_start (GTK_BOX (vbox2), label, TRUE, TRUE, 0);
   gtk_widget_show (label);
 
   view->progress_label = g_object_new (GTK_TYPE_LABEL, "xalign", 0.0f, NULL);
-  gtk_box_pack_start (GTK_BOX (vbox2), view->progress_label, FALSE, TRUE, 0);
+  gtk_label_set_ellipsize (GTK_LABEL (view->progress_label), PANGO_ELLIPSIZE_MIDDLE);
+  gtk_box_pack_start (GTK_BOX (vbox2), view->progress_label, TRUE, TRUE, 0);
   gtk_widget_show (view->progress_label);
 
   hbox = gtk_hbox_new (FALSE, 12);



More information about the Xfce4-commits mailing list