r2942 - in trunk/src/target/OM-2007.2/applications/openmoko-dialer2: . src

thomas at sita.openmoko.org thomas at sita.openmoko.org
Fri Sep 7 16:48:39 CEST 2007


Author: thomas
Date: 2007-09-07 16:48:37 +0200 (Fri, 07 Sep 2007)
New Revision: 2942

Modified:
   trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog
   trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-contacts.c
Log:
* src/moko-contacts.c: (moko_contacts_add_contact): Use fullname for
contact display name


Modified: trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog	2007-09-07 13:24:24 UTC (rev 2941)
+++ trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog	2007-09-07 14:48:37 UTC (rev 2942)
@@ -1,5 +1,10 @@
 2007-09-07  Thomas Wood  <thomas at openedhand.com>
 
+	* src/moko-contacts.c: (moko_contacts_add_contact): Use fullname for
+	contact display name
+
+2007-09-07  Thomas Wood  <thomas at openedhand.com>
+
 	* src/moko-dialer.c: (moko_dialer_init):#
 	 - Prevent critical warnings if the journal cannot be loaded.
 	 - Exit if we cannot connect to gsmd

Modified: trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-contacts.c
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-contacts.c	2007-09-07 13:24:24 UTC (rev 2941)
+++ trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-contacts.c	2007-09-07 14:48:37 UTC (rev 2942)
@@ -19,7 +19,6 @@
  */
 
 #include <glib.h>
-
 #include <stdio.h>
 #include <string.h>
 #include <libebook/e-book.h>
@@ -254,7 +253,7 @@
   g_return_if_fail (E_IS_CONTACT (e_contact));
   priv = contacts->priv;
 
-  name = e_contact_get_const (e_contact, E_CONTACT_NAME_OR_ORG);
+  name = e_contact_get_const (e_contact, E_CONTACT_FULL_NAME);
   if (!name || (g_utf8_strlen (name, -1) <= 0))
     name = "Unknown";
     
@@ -280,8 +279,6 @@
       entry->number = normalize (phone);
       entry->contact = m_contact;
 
-      g_debug ("%s %s", m_contact->name, entry->number);
-
       priv->entries = g_list_append (priv->entries, (gpointer)entry);
       g_hash_table_insert (priv->prefixes, 
                            g_strdup (entry->number), 





More information about the commitlog mailing list