]> git.0d.be Git - empathy.git/commitdiff
AccountsDialog: Ellipsize account dispaly name
authorXavier Claessens <xavier.claessens@collabora.co.uk>
Wed, 26 Jun 2013 13:28:26 +0000 (15:28 +0200)
committerXavier Claessens <xavier.claessens@collabora.co.uk>
Wed, 26 Jun 2013 13:28:26 +0000 (15:28 +0200)
This fix gnome-shell crash if the name is too big,
because it makes the window huge.

https://bugzilla.gnome.org/show_bug.cgi?id=702095

src/empathy-accounts-dialog.c

index f0a2db9a25a6f758614060bf13b32b591997ef0e..abb4e0ca80e72f54b95821109a48d631b790c733 100644 (file)
@@ -2384,6 +2384,7 @@ accounts_dialog_build_ui (EmpathyAccountsDialog *dialog)
 
   /* first row */
   priv->label_name = gtk_label_new (NULL);
 
   /* first row */
   priv->label_name = gtk_label_new (NULL);
+  gtk_label_set_ellipsize (GTK_LABEL (priv->label_name), PANGO_ELLIPSIZE_END);
   gtk_grid_attach (GTK_GRID (grid), priv->label_name, 1, 0, 1, 1);
 
   /* second row */
   gtk_grid_attach (GTK_GRID (grid), priv->label_name, 1, 0, 1, 1);
 
   /* second row */