evolution-data-server r9832 - trunk/camel



Author: sragavan
Date: Mon Dec 15 09:10:26 2008
New Revision: 9832
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9832&view=rev

Log:
2008-12-15  Srinivasa Ragavan  <sragavan novell com>

	* camel-folder.c: (get_uids): Fix some stupidity.




Modified:
   trunk/camel/ChangeLog
   trunk/camel/camel-folder.c

Modified: trunk/camel/camel-folder.c
==============================================================================
--- trunk/camel/camel-folder.c	(original)
+++ trunk/camel/camel-folder.c	Mon Dec 15 09:10:26 2008
@@ -1143,24 +1143,9 @@
 	GPtrArray *array;
 	int i, j, count;
 
-	array = g_ptr_array_new();
+	g_return_val_if_fail(folder->summary != NULL, g_ptr_array_new ());
 
-	g_return_val_if_fail(folder->summary != NULL, array);
-
-	count = camel_folder_summary_count(folder->summary);
-	g_ptr_array_set_size(array, count);
-	for (i = 0, j = 0; i < count; i++) {
-		CamelMessageInfo *info = camel_folder_summary_index(folder->summary, i);
-		
-		if (info) {
-			array->pdata[j++] = (char *)camel_pstring_strdup (camel_message_info_uid (info));
-			camel_message_info_free(info);
-		}
-	}
-	
-	g_ptr_array_set_size (array, j);
-	
-	return array;
+	return camel_folder_summary_array (folder->summary);
 }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]