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

njp at sita.openmoko.org njp at sita.openmoko.org
Wed Aug 22 14:55:08 CEST 2007


Author: njp
Date: 2007-08-22 14:55:07 +0200 (Wed, 22 Aug 2007)
New Revision: 2775

Modified:
   trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog
   trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-contacts.c
   trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-tips.c
Log:
2007-08-22  Neil J. Patel  <njp at o-hand.com>

	* src/moko-contacts.c: (moko_contacts_fuzzy_lookup),
	(moko_contacts_init):
	Properly initialise private variables.

	* src/moko-tips.c: (moko_tips_init):
	Don't load a default image.
	

Modified: trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog	2007-08-22 12:01:43 UTC (rev 2774)
+++ trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog	2007-08-22 12:55:07 UTC (rev 2775)
@@ -1,3 +1,12 @@
+2007-08-22  Neil J. Patel  <njp at o-hand.com>
+
+	* src/moko-contacts.c: (moko_contacts_fuzzy_lookup),
+	(moko_contacts_init):
+	Properly initialise private variables.
+
+	* src/moko-tips.c: (moko_tips_init):
+	Don't load a default image.
+	
 2007-08-21  Neil J. Patel  <njp at o-hand.com>
 
 	* src/dialer-main.c: (_dial_number), (main):

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-08-22 12:01:43 UTC (rev 2774)
+++ trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-contacts.c	2007-08-22 12:55:07 UTC (rev 2775)
@@ -119,8 +119,10 @@
   cur = priv->start;
 
   if (!cur)
-    g_print ("error\n");
-
+  {
+    g_print ("Invalid contacts data start point\n");
+    return NULL;
+  }
   if (!number)
     return NULL;
 
@@ -407,7 +409,7 @@
 
   priv = contacts->priv = MOKO_CONTACTS_GET_PRIVATE (contacts);
 
-  priv->contacts = priv->entries = NULL;
+  priv->contacts = priv->entries = priv->start = NULL;
   priv->prefixes = g_hash_table_new ((GHashFunc)g_str_hash,
                                      (GEqualFunc)g_str_equal);
   

Modified: trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-tips.c
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-tips.c	2007-08-22 12:01:43 UTC (rev 2774)
+++ trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-tips.c	2007-08-22 12:55:07 UTC (rev 2775)
@@ -163,8 +163,7 @@
   
   priv = tips->priv = MOKO_TIPS_GET_PRIVATE (tips);
 
-  priv->image = gtk_image_new_from_stock (GTK_STOCK_ADD, 
-                                          GTK_ICON_SIZE_LARGE_TOOLBAR);
+  priv->image = gtk_image_new ();
   gtk_box_pack_start (GTK_BOX (tips), priv->image, FALSE, FALSE, 0);
 
   hbox = gtk_hbox_new (TRUE, 0);





More information about the commitlog mailing list