[Xfce4-commits] [panel-plugins/xfce4-places-plugin] 01/01: Bug #11148, Patch 1.6.0 to sort recent documents by most recently used

noreply at xfce.org noreply at xfce.org
Mon Sep 8 20:48:32 CEST 2014


This is an automated email from the git hooks/post-receive script.

andrzejr pushed a commit to branch master
in repository panel-plugins/xfce4-places-plugin.

commit 4e0cf7a873f827c4b3624a857e1901a218dc8e1d
Author: Andrzej <ndrwrdck at gmail.com>
Date:   Mon Sep 8 19:47:52 2014 +0100

    Bug #11148, Patch 1.6.0 to sort recent documents by most recently used
    
    John Hanely:
    "Recent documents are shown unsorted, yet limited to a maximum of 25 items.
    This means that if you have more than 25 recent documents, only the most recently _added to the list_ will be shown.  That is, if you open a document which has already fallen off the bottom of the list, it will not move to the top of the list.  According to the GTK documentation, recent documents should not be shown unsorted if the count is limited.
    
    I am attaching a patch (against 1.6.0) to sort the list by most recently used."
---
 panel-plugin/view.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/panel-plugin/view.c b/panel-plugin/view.c
index 86bcb4c..8984ed2 100644
--- a/panel-plugin/view.c
+++ b/panel-plugin/view.c
@@ -657,6 +657,7 @@ pview_update_menu(PlacesView *pd)
 
         gtk_recent_chooser_set_show_icons(GTK_RECENT_CHOOSER(recent_menu), pd->cfg->show_icons);
         gtk_recent_chooser_set_limit(GTK_RECENT_CHOOSER(recent_menu), pd->cfg->show_recent_number);
+        gtk_recent_chooser_set_sort_type(GTK_RECENT_CHOOSER(recent_menu), GTK_RECENT_SORT_MRU);
 
         g_signal_connect(recent_menu, "item-activated", 
                          G_CALLBACK(pview_cb_recent_item_open), pd);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list