[gnome-contacts] Added ellipsize to "Editing ... " label
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Added ellipsize to "Editing ... " label
- Date: Mon, 3 Jun 2013 19:04:20 +0000 (UTC)
commit e6e6c908204593825d746e20526d95309fb75c82
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Mon Jun 3 15:03:41 2013 -0400
Added ellipsize to "Editing ... " label
Fix as well some bugs in the widgets showing the
contacts details related to the same behavior.
Fixed: https://bugzilla.gnome.org/show_bug.cgi?id=701515
src/contacts-app.vala | 4 ++++
src/contacts-contact-sheet.vala | 6 ++++++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index 6162b9e..74f3467 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -302,12 +302,16 @@ public class Contacts.App : Gtk.Application {
grid.attach (right_toolbar, 1, 0, 1, 1);
contact_name = new Label (null);
+ contact_name.set_ellipsize (Pango.EllipsizeMode.END);
+ contact_name.wrap_mode = Pango.WrapMode.CHAR;
+ contact_name.set_halign (Align.START);
contact_name.set_valign (Align.CENTER);
contact_name.set_vexpand (true);
contact_name.set_hexpand (true);
contact_name.margin_left = 12;
contact_name.margin_right = 12;
var item = new ToolItem ();
+ item.set_expand (true);
item.add (contact_name);
right_toolbar.insert (item, -1);
diff --git a/src/contacts-contact-sheet.vala b/src/contacts-contact-sheet.vala
index cd24dc0..dcfcee4 100644
--- a/src/contacts-contact-sheet.vala
+++ b/src/contacts-contact-sheet.vala
@@ -37,6 +37,10 @@ public class Contacts.ContactSheet : Grid {
attach (value_button, 1, row, 1, 1);
row++;
+ (value_button.get_child () as Label).set_ellipsize (Pango.EllipsizeMode.END);
+ (value_button.get_child () as Label).wrap_mode = Pango.WrapMode.CHAR;
+
+
return value_button;
}
@@ -52,6 +56,8 @@ public class Contacts.ContactSheet : Grid {
value_label.set_line_wrap (true);
value_label.xalign = 0.0f;
value_label.set_halign (Align.START);
+ value_label.set_ellipsize (Pango.EllipsizeMode.END);
+ value_label.wrap_mode = Pango.WrapMode.CHAR;
/* FIXME: hardcode gap to match the button size */
type_label.margin_top = 3;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]