[gtk+/gtk-2-24: 12/15] Don't sort the recent-items by hand
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24: 12/15] Don't sort the recent-items by hand
- Date: Thu, 1 Sep 2011 16:28:05 +0000 (UTC)
commit 37f9feebd24f5fcf46b6fc92ce5304af6cac1763
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Aug 25 12:57:03 2011 -0500
Don't sort the recent-items by hand
The mtime from GtkRecentManager may not the same as the file's actual
mtime, so the final result could appear unsorted to the user. Instead,
we will let the view do the sorting.
Signed-off-by: Federico Mena Quintero <federico gnome org>
gtk/gtkfilechooserdefault.c | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index 3e9d885..031b28b 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -9290,16 +9290,6 @@ recent_idle_cleanup (gpointer data)
}
static gint
-recent_sort_mru (gconstpointer a,
- gconstpointer b)
-{
- GtkRecentInfo *info_a = (GtkRecentInfo *) a;
- GtkRecentInfo *info_b = (GtkRecentInfo *) b;
-
- return (gtk_recent_info_get_modified (info_b) - gtk_recent_info_get_modified (info_a));
-}
-
-static gint
get_recent_files_limit (GtkWidget *widget)
{
GtkSettings *settings;
@@ -9389,8 +9379,6 @@ recent_idle_load (gpointer data)
/* second iteration: MRU sorting and clamping, and populating the model */
if (load_data->needs_sorting)
{
- load_data->items = g_list_sort (load_data->items, recent_sort_mru);
-
if (impl->action == GTK_FILE_CHOOSER_ACTION_OPEN)
populate_model_with_recent_items (impl, load_data->items);
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]