[gnome-online-accounts] Fix the size of the label and ellipsize the text in the account header



commit ee94ab066e104521f37cae49d417cf1756383fd3
Author: Debarshi Ray <debarshir gnome org>
Date:   Sun Apr 15 21:09:05 2012 +0200

    Fix the size of the label and ellipsize the text in the account header

 src/goabackend/goaprovider.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/goabackend/goaprovider.c b/src/goabackend/goaprovider.c
index f689894..6d1db56 100644
--- a/src/goabackend/goaprovider.c
+++ b/src/goabackend/goaprovider.c
@@ -1194,6 +1194,10 @@ goa_util_add_account_info (GtkGrid *left, GtkGrid *right, GoaObject *object)
                             (identity == NULL || identity[0] == '\0') ? "\xe2\x80\x94" : identity);
   label = gtk_label_new (NULL);
   gtk_label_set_markup (GTK_LABEL (label), markup);
+  gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END);
+  gtk_label_set_max_width_chars (GTK_LABEL (label), 24);
+  gtk_label_set_width_chars (GTK_LABEL (label), 24);
+  gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
   g_free (markup);
   gtk_container_add (GTK_CONTAINER (right), label);
 



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