[gnome-contacts] Make IM status be vertical
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Make IM status be vertical
- Date: Wed, 8 Jun 2011 20:34:41 +0000 (UTC)
commit 5fad74d40d94f89704508a1c868aacd0d3347180
Author: Alexander Larsson <alexl redhat com>
Date: Tue Jun 7 16:27:30 2011 +0200
Make IM status be vertical
src/contacts-app.vala | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index b5c6b80..51a74b2 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -67,8 +67,15 @@ public class Contacts.App : Window {
cell.set ("pixbuf", contact.avatar);
});
+ tree_view.append_column (column);
+
+ column = new TreeViewColumn ();
+
+ var area = (CellAreaBox)column.get_area ();
+ area.set_orientation (Orientation.VERTICAL);
+
text = new CellRendererText ();
- column.pack_start (text, true);
+ column.pack_start (text, false);
text.set ("weight", Pango.Weight.BOLD);
column.set_cell_data_func (text, (column, cell, model, iter) => {
Contact contact;
@@ -80,6 +87,8 @@ public class Contacts.App : Window {
});
icon = new CellRendererPixbuf ();
+
+ icon.set_alignment (0, 0.5f);
column.pack_start (icon, false);
column.set_cell_data_func (icon, (column, cell, model, iter) => {
Contact contact;
@@ -88,9 +97,12 @@ public class Contacts.App : Window {
Individual individual = contact.individual;
string? iconname = Contact.presence_to_icon (individual.presence_type);
- cell.set ("visible", icon != null);
+ //cell.set ("visible", icon != null);
if (icon != null)
cell.set ("icon-name", iconname);
+ else
+ cell.set ("icon-name", null);
+
});
tree_view.append_column (column);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]