I've also now added photo support to the contacts list.
The attached patch enables support for phone numbers and photos in the
OpenMoko build of contacts.
An example screenshot showing the result is available here:
http://folks.o-hand.com/thomas/openmoko-contacts-list-springfield.png
Regards,
Thomas
--
OpenedHand Ltd.
Unit R Homesdale Business Center / 216-218 Homesdale Road /
Bromley / BR1 2QZ / UK Tel: +44 (0)20 8819 6559
Expert Open Source For Consumer Devices - http://o-hand.com/
------------------------------------------------------------
Index: openmoko-contacts-list.c
===================================================================
--- openmoko-contacts-list.c (revision 411)
+++ openmoko-contacts-list.c (working copy)
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2007 OpenMoko, Inc
+ * Copyright (C) 2008 OpenedHand Ltd
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
@@ -124,6 +125,8 @@
data->contacts_treeview = hito_contact_view_new (HITO_CONTACT_STORE (data->contact_store),
HITO_CONTACT_MODEL_FILTER (contact_filter));
+ g_object_set (data->contacts_treeview, "display-phone", TRUE, NULL);
+ g_object_set (data->contacts_treeview, "display-photo", TRUE, NULL);
g_signal_connect (gtk_tree_view_get_selection (GTK_TREE_VIEW (data->contacts_treeview)),
"changed", G_CALLBACK (on_selection_changed), data);
gtk_container_add (GTK_CONTAINER (scrolled), data->contacts_treeview);