[evince] recent-view: Do not sort the GtkTreeModel
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] recent-view: Do not sort the GtkTreeModel
- Date: Sat, 10 May 2014 12:29:07 +0000 (UTC)
commit 608e918414216201d0229afa4113a34c9115a8fe
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Sat May 10 14:20:20 2014 +0200
recent-view: Do not sort the GtkTreeModel
We already sort the recent items ourselves and everytime the recent
files change we clear and fill the model again.
shell/ev-recent-view.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/shell/ev-recent-view.c b/shell/ev-recent-view.c
index c36ada2..aff20a5 100644
--- a/shell/ev-recent-view.c
+++ b/shell/ev-recent-view.c
@@ -37,7 +37,6 @@ typedef enum {
EV_RECENT_VIEW_COLUMN_PRIMARY_TEXT,
EV_RECENT_VIEW_COLUMN_SECONDARY_TEXT,
EV_RECENT_VIEW_COLUMN_ICON,
- EV_RECENT_VIEW_COLUMN_MTIME,
EV_RECENT_VIEW_COLUMN_JOB,
NUM_COLUMNS
} EvRecentViewColumns;
@@ -358,7 +357,6 @@ ev_recent_view_refresh (EvRecentView *ev_recent_view)
EV_RECENT_VIEW_COLUMN_PRIMARY_TEXT, gtk_recent_info_get_display_name
(info),
EV_RECENT_VIEW_COLUMN_SECONDARY_TEXT, NULL,
EV_RECENT_VIEW_COLUMN_ICON, thumbnail,
- EV_RECENT_VIEW_COLUMN_MTIME, gtk_recent_info_get_modified (info),
EV_RECENT_VIEW_COLUMN_JOB, job_load,
-1);
@@ -456,13 +454,8 @@ ev_recent_view_init (EvRecentView *ev_recent_view)
G_TYPE_STRING,
G_TYPE_STRING,
CAIRO_GOBJECT_TYPE_SURFACE,
- G_TYPE_LONG,
EV_TYPE_JOB);
- gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (priv->model),
- EV_RECENT_VIEW_COLUMN_MTIME,
- GTK_SORT_DESCENDING);
-
gtk_widget_set_hexpand (GTK_WIDGET (ev_recent_view), TRUE);
gtk_widget_set_vexpand (GTK_WIDGET (ev_recent_view), TRUE);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (ev_recent_view), GTK_SHADOW_IN);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]