[passepartout] display the most recently used documents on top



commit 544cc6da56263add36067c347a309da46bd8ac00
Author: Sven Herzberg <herzi lanedo com>
Date:   Wed Apr 15 15:16:21 2009 +0200

    display the most recently used documents on top
    
    * src/pptout/windowmenus.cc: display the most recently used documents on top
      (this is what I - wearing my passepartout's user hat - expect from an
      application)
---
 src/pptout/windowmenus.cc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/pptout/windowmenus.cc b/src/pptout/windowmenus.cc
index 21260b4..36d9bb3 100644
--- a/src/pptout/windowmenus.cc
+++ b/src/pptout/windowmenus.cc
@@ -160,6 +160,7 @@ void FrameWindow::create_menus() {
 					 _("Open one of these recently opened files"));
   action->set_show_numbers (true);
   action->set_local_only ();
+  action->set_sort_type (RECENT_SORT_MRU); /* most recently used on top */
   RecentFilter* filter = Gtk::manage(new RecentFilter);
   filter->add_mime_type ("application/x-passepartout");
   action->add_filter (*filter);



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