r3712 - in trunk/src/target/OM-2007.2/applications/openmoko-messages2: . src

chris at sita.openmoko.org chris at sita.openmoko.org
Thu Dec 20 19:08:31 CET 2007


Author: chris
Date: 2007-12-20 19:08:30 +0100 (Thu, 20 Dec 2007)
New Revision: 3712

Modified:
   trunk/src/target/OM-2007.2/applications/openmoko-messages2/ChangeLog
   trunk/src/target/OM-2007.2/applications/openmoko-messages2/src/sms-notes.c
Log:
        * src/sms-notes.c: (sms_notes_data_func):
        Disable showing of recipient's name on the notes view page


Modified: trunk/src/target/OM-2007.2/applications/openmoko-messages2/ChangeLog
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-messages2/ChangeLog	2007-12-20 17:24:47 UTC (rev 3711)
+++ trunk/src/target/OM-2007.2/applications/openmoko-messages2/ChangeLog	2007-12-20 18:08:30 UTC (rev 3712)
@@ -1,6 +1,11 @@
 2007-12-20  Chris Lord  <chris at openedhand.com>
 
 	* src/sms-notes.c: (sms_notes_data_func):
+	Disable showing of recipient's name on the notes view page
+
+2007-12-20  Chris Lord  <chris at openedhand.com>
+
+	* src/sms-notes.c: (sms_notes_data_func):
 	Display contact names instead of phone numbers (fixes bug #1143)
 
 2007-12-20  Chris Lord  <chris at openedhand.com>

Modified: trunk/src/target/OM-2007.2/applications/openmoko-messages2/src/sms-notes.c
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-messages2/src/sms-notes.c	2007-12-20 17:24:47 UTC (rev 3711)
+++ trunk/src/target/OM-2007.2/applications/openmoko-messages2/src/sms-notes.c	2007-12-20 18:08:30 UTC (rev 3712)
@@ -301,14 +301,14 @@
 				 GtkTreeIter *iter,
 				 SmsData *data)
 {
-	gchar *author, *recipient, *body, **categories;
+	gchar *author, /**recipient,*/ *body, **categories;
 	JanaTime *created, *modified;
 	gboolean outgoing;
 	gint i;
 	
 	gtk_tree_model_get (model, iter,
 		JANA_GTK_NOTE_STORE_COL_AUTHOR, &author,
-		JANA_GTK_NOTE_STORE_COL_RECIPIENT, &recipient,
+		/*JANA_GTK_NOTE_STORE_COL_RECIPIENT, &recipient,*/
 		JANA_GTK_NOTE_STORE_COL_BODY, &body,
 		JANA_GTK_NOTE_STORE_COL_CREATED, &created,
 		JANA_GTK_NOTE_STORE_COL_MODIFIED, &modified,
@@ -328,10 +328,10 @@
 	}
 	
 	/* Replace numbers with contact names */
-	for (i = 0; i < 2; i++) {
+	for (i = /*0*/ 1; i < 2; i++) {
 		const gchar *uid;
 		GtkTreeIter *iter;
-		gchar *number = i ? author : recipient;
+		gchar *number = i ? author : /*recipient*/ NULL;
 		gchar *name;
 		
 		if (!number) continue;
@@ -347,13 +347,13 @@
 		if (name) {
 			g_free (number);
 			if (i) author = name;
-			else recipient = name;
+			/*else recipient = name;*/
 		}
 	}
 	
 	g_object_set (cell,
 		"author", author,
-		"recipient", recipient,
+		"recipient", /*recipient*/ NULL,
 		"body", body,
 		"created", created,
 		"modified", modified,
@@ -364,7 +364,7 @@
 		NULL);
 	
 	g_free (author);
-	g_free (recipient);
+	/*g_free (recipient);*/
 	g_free (body);
 	if (created) g_object_unref (created);
 	if (modified) g_object_unref (modified);





More information about the commitlog mailing list