[gnome-contacts/wip/sorted: 8/8] Add presence in new ContactsView



commit 2a3448f204a93458379738b2ccf49f7983d935f1
Author: Alexander Larsson <alexl redhat com>
Date:   Thu Feb 23 16:48:50 2012 +0100

    Add presence in new ContactsView

 src/contacts-view.vala |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/src/contacts-view.vala b/src/contacts-view.vala
index c747bba..34dea76 100644
--- a/src/contacts-view.vala
+++ b/src/contacts-view.vala
@@ -200,8 +200,16 @@ public class Contacts.View : Contacts.Sorted {
     data.grid = new Grid ();
     data.image_frame = new ContactFrame (Contact.SMALL_AVATAR_SIZE);
     data.label = new Label ("");
-    data.grid.add (data.image_frame);
-    data.grid.add (data.label);
+    data.label.set_ellipsize (Pango.EllipsizeMode.END);
+
+    var merged_presence = c.create_merged_presence_widget ();
+    merged_presence.set_halign (Align.START);
+    merged_presence.set_valign (Align.START);
+    merged_presence.set_vexpand (true);
+
+    data.grid.attach (data.image_frame, 0, 0, 1, 2);
+    data.grid.attach (data.label, 1, 0, 1, 1);
+    data.grid.attach (merged_presence,  1, 1, 1, 1);
 
     update_data (data);
 



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