[Xfce4-commits] [apps/parole] 01/01: Clear only the history created by Parole, GtkRecentManager no longer accounts for applied filters when purging (bug #13493)

noreply at xfce.org noreply at xfce.org
Wed May 24 12:23:22 CEST 2017


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

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/parole.

commit 4999fecc63307938d9613eb13189a368bfda9151
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Wed May 24 06:23:16 2017 -0400

    Clear only the history created by Parole, GtkRecentManager no longer accounts for applied filters when purging (bug #13493)
---
 src/parole-player.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/src/parole-player.c b/src/parole-player.c
index 758d2fa..a826453 100644
--- a/src/parole-player.c
+++ b/src/parole-player.c
@@ -1235,7 +1235,19 @@ parole_player_recent_menu_clear_activated_cb (GtkWidget *widget, ParolePlayer *p
     response = gtk_dialog_run(GTK_DIALOG(dlg));
     if (response == 1)
     {
-        gtk_recent_manager_purge_items(player->priv->recent, NULL);
+        GList *items, *l;
+
+        items = gtk_recent_manager_get_items (player->priv->recent);
+        for (l = items; l != NULL; l = l->next) {
+            GtkRecentInfo *info = l->data;
+
+            if (gtk_recent_info_has_application(info, "parole"))
+                gtk_recent_manager_remove_item (player->priv->recent,
+                                                gtk_recent_info_get_uri(info),
+                                                NULL);
+        }
+
+        g_list_free_full (items, (GDestroyNotify) gtk_recent_info_unref);
     }
     gtk_widget_destroy(dlg);
 }

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


More information about the Xfce4-commits mailing list