[Xfce4-commits] <parole:bluesabre/gtk3> Fix remembered playlist not being forgotten when setting disabled

Sean Davis noreply at xfce.org
Sun Aug 11 15:18:27 CEST 2013


Updating branch refs/heads/bluesabre/gtk3
         to b740804f795c3cf7d0dc06868f0a9499230324ce (commit)
       from d6f78d30d51f70ca33805ae98e8d66745a7bbdcd (commit)

commit b740804f795c3cf7d0dc06868f0a9499230324ce
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Sat Aug 3 06:26:18 2013 -0400

    Fix remembered playlist not being forgotten when setting disabled

 ChangeLog              |    3 +++
 src/parole-medialist.c |   10 ++++++++++
 2 files changed, 13 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 56ffb58..cb7eae3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2013-08-03: bluesabre at xfce.org
+    * Fix remembered playlist not being forgotten when setting disabled.
+
 2013-07-25: bluesabre at xfce.org
     * Bugfix release 0.5.2
     * Revert "Fix MKV subtitles being shown when automatically show subtitles is disabled (bug 9880)"
diff --git a/src/parole-medialist.c b/src/parole-medialist.c
index 678eb82..0d2cfc8 100644
--- a/src/parole-medialist.c
+++ b/src/parole-medialist.c
@@ -1175,9 +1175,19 @@ play_opened_files_activated_cb (GtkWidget *mi, ParoleConf *conf)
 static void
 remember_playlist_activated_cb (GtkWidget *mi, ParoleConf *conf)
 {
+    gchar *playlist_filename;
+    GFile *playlist_file;
     g_object_set (G_OBJECT (conf),
 		  "remember-playlist", gtk_check_menu_item_get_active (GTK_CHECK_MENU_ITEM (mi)),
 		  NULL);
+    if (!gtk_check_menu_item_get_active (GTK_CHECK_MENU_ITEM (mi))) {
+        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);
+    }
 }
 
 static void


More information about the Xfce4-commits mailing list