[maemo-commits] [maemo-commits] r13740 - projects/haf/trunk/hildon-fm/hildon-fm

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Sep 11 14:11:24 EEST 2007
Author: marivoll
Date: 2007-09-11 14:11:23 +0300 (Tue, 11 Sep 2007)
New Revision: 13740

Modified:
   projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-selection.c
Log:
	* hildon-fm/hildon-file-selection.c (sort_function): If nodes are
	identical in the current sort key, compare their names (N60626).


Modified: projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-selection.c
===================================================================
--- projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-selection.c	2007-09-11 10:53:33 UTC (rev 13739)
+++ projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-selection.c	2007-09-11 11:11:23 UTC (rev 13740)
@@ -802,8 +802,12 @@
 
     g_free(mime_a);
     g_free(mime_b);
-
-    return value;
+    
+    if (value != 0)
+      return value;
+    else 
+      return sort_function (model, a, b, 
+			    HILDON_FILE_SELECTION_SORT_NAME, order);
 }
 
 static gint


More information about the maemo-commits mailing list