[gthumb] statusbar: activate ellipsizing for the labels



commit f1fd43c6d85b215ad24720ee6af8261fd3301cac
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Wed Oct 30 22:08:07 2013 +0100

    statusbar: activate ellipsizing for the labels

 gthumb/gth-statusbar.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-statusbar.c b/gthumb/gth-statusbar.c
index 1e5ffd4..1f564ab 100644
--- a/gthumb/gth-statusbar.c
+++ b/gthumb/gth-statusbar.c
@@ -58,6 +58,7 @@ gth_statusbar_init (GthStatusbar *statusbar)
        /* List info */
 
        statusbar->priv->list_info_label = gtk_label_new (NULL);
+       gtk_label_set_ellipsize (GTK_LABEL (statusbar->priv->list_info_label), PANGO_ELLIPSIZE_END);
        gtk_widget_show (statusbar->priv->list_info_label);
        gtk_box_pack_start (GTK_BOX (statusbar), statusbar->priv->list_info_label, FALSE, FALSE, 0);
 
@@ -70,6 +71,7 @@ gth_statusbar_init (GthStatusbar *statusbar)
        /* Primary text */
 
        statusbar->priv->primary_text = gtk_label_new (NULL);
+       gtk_label_set_ellipsize (GTK_LABEL (statusbar->priv->primary_text), PANGO_ELLIPSIZE_END);
        gtk_widget_show (statusbar->priv->primary_text);
 
        statusbar->priv->primary_text_frame = gtk_frame_new (NULL);
@@ -82,6 +84,7 @@ gth_statusbar_init (GthStatusbar *statusbar)
        /* Secondary text */
 
        statusbar->priv->secondary_text = gtk_label_new (NULL);
+       gtk_label_set_ellipsize (GTK_LABEL (statusbar->priv->secondary_text), PANGO_ELLIPSIZE_END);
        gtk_widget_show (statusbar->priv->secondary_text);
 
        statusbar->priv->secondary_text_frame = gtk_frame_new (NULL);


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