r1740 - in trunk/src/target/OM-2007/applications/openmoko-contacts: . src
thomas at sita.openmoko.org
thomas at sita.openmoko.org
Fri Apr 13 18:34:41 CEST 2007
Author: thomas
Date: 2007-04-13 18:34:38 +0200 (Fri, 13 Apr 2007)
New Revision: 1740
Modified:
trunk/src/target/OM-2007/applications/openmoko-contacts/ChangeLog
trunk/src/target/OM-2007/applications/openmoko-contacts/src/contacts-callbacks-ebook.c
Log:
* src/contacts-callbacks-ebook.c: (contacts_changed_cb):
Make sure cell phone column is updated when a contact is saved. Fixes bug 400.
Modified: trunk/src/target/OM-2007/applications/openmoko-contacts/ChangeLog
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-contacts/ChangeLog 2007-04-13 16:24:40 UTC (rev 1739)
+++ trunk/src/target/OM-2007/applications/openmoko-contacts/ChangeLog 2007-04-13 16:34:38 UTC (rev 1740)
@@ -1,3 +1,9 @@
+2007-04-13 Thomas Wood <thomas at openedhand.com>
+
+ * src/contacts-callbacks-ebook.c: (contacts_changed_cb):
+
+ Make sure cell phone column is updated when a contact is saved. Fixes bug 400.
+
2007-04-04 Thomas Wood <thomas at openedhand.com>
* src/contacts-contact-pane.c: (set_type), (get_type),
Modified: trunk/src/target/OM-2007/applications/openmoko-contacts/src/contacts-callbacks-ebook.c
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-contacts/src/contacts-callbacks-ebook.c 2007-04-13 16:24:40 UTC (rev 1739)
+++ trunk/src/target/OM-2007/applications/openmoko-contacts/src/contacts-callbacks-ebook.c 2007-04-13 16:34:38 UTC (rev 1740)
@@ -125,7 +125,7 @@
EContact *contact = E_CONTACT (c->data);
EContactListHash *hash;
GList *contact_groups;
- const gchar *uid, *name;
+ const gchar *uid, *name, *cell;
/* Lookup if contact exists in internal list (it should) */
uid = e_contact_get_const (contact, E_CONTACT_UID);
@@ -144,9 +144,13 @@
name = e_contact_get_const (contact, E_CONTACT_FULL_NAME);
if ((!name) || (g_utf8_strlen (name, -1) <= 0))
name = "Unnamed";
- gtk_list_store_set (model, &hash->iter, CONTACT_NAME_COL, name,
- -1);
+ gtk_list_store_set (model, &hash->iter, CONTACT_NAME_COL, name, -1);
+ cell = e_contact_get_const (contact, E_CONTACT_PHONE_MOBILE);
+ if ((!cell) || (g_utf8_strlen (cell, -1) <= 0))
+ cell = "";
+ gtk_list_store_set (model, &hash->iter, CONTACT_CELLPHONE_COL, cell, -1);
+
/* If contact is currently selected, update display */
if (current_contact) {
if (strcmp (e_contact_get_const
More information about the commitlog
mailing list