[gnome-contacts] In-app notification: ellipsize long contact name
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] In-app notification: ellipsize long contact name
- Date: Fri, 19 Jul 2013 14:18:34 +0000 (UTC)
commit af3811b1d50603898e9dc05e6fd9ba53d4d002dd
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Fri Jul 19 09:34:44 2013 -0400
In-app notification: ellipsize long contact name
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=704529
src/contacts-app.vala | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index f7ea946..a197534 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -579,9 +579,11 @@ public class Contacts.App : Gtk.Application {
g.set_column_spacing (8);
notification.add (g);
- string msg = _("Contact deleted: \"%s\"").printf (contact.display_name);
+ var label = new Label (_("Contact deleted: \"%s\"").printf (contact.display_name));
+ label.set_max_width_chars (45);
+ label.set_ellipsize (Pango.EllipsizeMode.END);
var b = new Button.from_stock (Stock.UNDO);
- g.add (new Label (msg));
+ g.add (label);
g.add (b);
bool really_delete = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]