[Xfce4-commits] <parole:bluesabre/gtk3> Remove/clear auto-saved-playlist file upon using the clear-playlist button

Simon Steinbeiss noreply at xfce.org
Sat Sep 21 10:00:01 CEST 2013


Updating branch refs/heads/bluesabre/gtk3
         to 8cb12d45f65f64ee68991b23907114e9d9372db7 (commit)
       from 071acfe9893612c7a498029993e311fa358b61c5 (commit)

commit 8cb12d45f65f64ee68991b23907114e9d9372db7
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Sat Sep 21 09:57:12 2013 +0200

    Remove/clear auto-saved-playlist file upon using the clear-playlist button

 src/parole-medialist.c |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/parole-medialist.c b/src/parole-medialist.c
index f309d47..618d2f8 100644
--- a/src/parole-medialist.c
+++ b/src/parole-medialist.c
@@ -572,7 +572,15 @@ parole_media_list_add_clicked_cb (GtkButton *button, ParoleMediaList *list)
 void 
 parole_media_list_clear_clicked_cb (GtkButton *button, ParoleMediaList *list)
 {
+    gchar *playlist_filename;
+    GFile *playlist_file;
     parole_media_list_clear_list (list);
+    playlist_filename = xfce_resource_save_location (XFCE_RESOURCE_DATA, 
+                                                         PAROLE_AUTO_SAVED_PLAYLIST, 
+                                                         FALSE);
+    playlist_file = g_file_new_for_path(playlist_filename);
+    g_file_delete(playlist_file, NULL, NULL);
+    g_free(playlist_filename);
 }
 
 /**


More information about the Xfce4-commits mailing list