commit f482a5ae034b380350c11e296ea77be313e3d5b2
Author: Daniele Forsi <dani...@forsi.it>
Date:   Sat Jul 14 15:54:26 2012 +0200

    Fix setting the sort order with the Playlist Display plugin
    
    Dereference gpointer value.

 plugins/playlist_display/display_playlists.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plugins/playlist_display/display_playlists.c 
b/plugins/playlist_display/display_playlists.c
index e13c579..380834e 100644
--- a/plugins/playlist_display/display_playlists.c
+++ b/plugins/playlist_display/display_playlists.c
@@ -2134,8 +2134,10 @@ void playlist_display_playlist_removed_cb(GtkPodApp 
*app, gpointer pl, gpointer
 
 void playlist_display_preference_changed_cb(GtkPodApp *app, gpointer pfname, 
gpointer value, gpointer data) {
     gchar *pref_name = pfname;
-    if (g_str_equal(pref_name, "pm_sort"))
-        pm_sort((GtkSortType) value);
+    if (g_str_equal(pref_name, "pm_sort")) {
+        GtkSortType *sort_type = value;
+        pm_sort(*sort_type);
+    }
     else if (g_str_equal(pref_name, "pm_case_sensitive")) {
         gint val = prefs_get_int("pm_sort");
         pm_sort((GtkSortType) val);

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
gtkpod-cvs2 mailing list
gtkpod-cvs2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to