[gnome-contacts] Add Contact Name label for new contacts



commit dd71159a54fe02b99ad4709bf4159ffa4f0b8246
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Aug 29 15:02:16 2011 +0200

    Add Contact Name label for new contacts

 src/contacts-contact-pane.vala |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index ee85361..d0366b0 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -1166,12 +1166,19 @@ public class Contacts.ContactPane : EventBox {
     e.set_data ("original-text", contact.display_name);
     e.set_text (contact.display_name);
     e.set_hexpand (true);
-    e.set_halign (Align.START);
+    e.set_halign (Align.FILL);
     e.set_valign (Align.START);
     g.attach (e,  0, 0, 1, 1);
     if (new_contact)
       e.grab_focus ();
 
+    if (new_contact) {
+      var l = new Label ("");
+      l.set_markup ("<span font='12px'>" + _("Contact Name") + "</span>");
+      l.xalign = 0.0f;
+      g.attach (l,  0, 1, 1, 1);
+    }
+
     edit_persona_grid = new Grid ();
     edit_persona_grid.set_row_spacing (0);
     edit_persona_grid.set_halign (Align.START);



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