gnome-main-menu r422 - trunk/libslab
- From: federico svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-main-menu r422 - trunk/libslab
- Date: Sat, 5 Apr 2008 00:42:28 +0100 (BST)
Author: federico
Date: Sat Apr 5 00:42:28 2008
New Revision: 422
URL: http://svn.gnome.org/viewvc/gnome-main-menu?rev=422&view=rev
Log:
Don't use g_list_insert_sorted() in BookmarkAgent
Signed-off-by: Federico Mena Quintero <federico gnu org>
Modified:
trunk/libslab/bookmark-agent.c
Modified: trunk/libslab/bookmark-agent.c
==============================================================================
--- trunk/libslab/bookmark-agent.c (original)
+++ trunk/libslab/bookmark-agent.c Sat Apr 5 00:42:28 2008
@@ -353,11 +353,12 @@
item->mime_type = g_bookmark_file_get_mime_type (store, uris [i], NULL);
item->mtime = g_bookmark_file_get_modified (store, uris [i], NULL);
- items_ordered = g_list_insert_sorted (items_ordered, item, recent_item_mru_comp_func);
- /* FIXME: g_list_insert_sorted() is evil. Sort this at the end. */
+ items_ordered = g_list_prepend (items_ordered, item);
}
}
+ items_ordered = g_list_sort (items_ordered, recent_item_mru_comp_func);
+
g_strfreev (uris);
g_bookmark_file_free (store);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]