[libgd] main-toolbar: ellpsize also the "detail" label



commit 054738b306c451e8c98fc5e7ca72c0ad016b2e3b
Author: Stefano Facchini <stefano facchini gmail com>
Date:   Tue Sep 11 18:13:13 2012 +0200

    main-toolbar: ellpsize also the "detail" label
    
    Otherwise the detail could hide the primary text.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=683808

 libgd/gd-main-toolbar.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libgd/gd-main-toolbar.c b/libgd/gd-main-toolbar.c
index a217ae6..7ff7b86 100644
--- a/libgd/gd-main-toolbar.c
+++ b/libgd/gd-main-toolbar.c
@@ -221,6 +221,7 @@ gd_main_toolbar_constructed (GObject *obj)
   gtk_container_add (GTK_CONTAINER (grid), self->priv->title_label);
 
   self->priv->detail_label = gtk_label_new (NULL);
+  gtk_label_set_ellipsize (GTK_LABEL (self->priv->detail_label), PANGO_ELLIPSIZE_END);
   gtk_widget_set_no_show_all (self->priv->detail_label, TRUE);
   gtk_style_context_add_class (gtk_widget_get_style_context (self->priv->detail_label), "dim-label");
   gtk_container_add (GTK_CONTAINER (grid), self->priv->detail_label);



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