[gedit/gnome-3-8] quickopen: reverse order for rencent items.



commit f5a3971379c47cb03ae9e2a5d9e1a69f995d55df
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Fri Apr 19 23:22:03 2013 +0200

    quickopen: reverse order for rencent items.
    
    See bug: https://bugzilla.gnome.org/show_bug.cgi?id=698311

 plugins/quickopen/quickopen/virtualdirs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/quickopen/quickopen/virtualdirs.py b/plugins/quickopen/quickopen/virtualdirs.py
index 3f981c2..d4b320c 100644
--- a/plugins/quickopen/quickopen/virtualdirs.py
+++ b/plugins/quickopen/quickopen/virtualdirs.py
@@ -58,7 +58,7 @@ class RecentDocumentsDirectory(VirtualDirectory):
         manager = Gtk.RecentManager.get_default()
 
         items = manager.get_items()
-        items.sort(key=lambda a: a.get_visited())
+        items.sort(key=lambda a: - a.get_visited(), reverse=True)
 
         added = 0
 


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