diff options
author | waker <wakeroid@gmail.com> | 2011-04-16 17:39:03 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-04-16 17:39:03 +0200 |
commit | 1a32ce71a7b5120f52c74c1bfd60a1084dab606a (patch) | |
tree | 717fc583ccd4619c2b5705feb86b97751423c24d /plugins/gtkui/plcommon.c | |
parent | c5d9399c6f0bd64fa291c6f7c9997e0b024635ef (diff) |
fixed redrawing playlist on grouping change
Diffstat (limited to 'plugins/gtkui/plcommon.c')
-rw-r--r-- | plugins/gtkui/plcommon.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/gtkui/plcommon.c b/plugins/gtkui/plcommon.c index ad758007..8eada61e 100644 --- a/plugins/gtkui/plcommon.c +++ b/plugins/gtkui/plcommon.c @@ -537,6 +537,10 @@ on_group_by_none_activate (GtkMenuItem *menuitem, { strcpy (group_by_str, ""); deadbeef->conf_set_str ("playlist.group_by", group_by_str); + + deadbeef->pl_lock (); + deadbeef->plt_modified (deadbeef->plt_get_handle (deadbeef->plt_get_curr ())); + deadbeef->pl_unlock (); main_refresh (); } @@ -546,6 +550,9 @@ on_group_by_artist_date_album_activate (GtkMenuItem *menuitem, { strcpy (group_by_str, "%a - [%y] %b"); deadbeef->conf_set_str ("playlist.group_by", group_by_str); + deadbeef->pl_lock (); + deadbeef->plt_modified (deadbeef->plt_get_handle (deadbeef->plt_get_curr ())); + deadbeef->pl_unlock (); main_refresh (); } @@ -555,6 +562,9 @@ on_group_by_artist_activate (GtkMenuItem *menuitem, { strcpy (group_by_str, "%a"); deadbeef->conf_set_str ("playlist.group_by", group_by_str); + deadbeef->pl_lock (); + deadbeef->plt_modified (deadbeef->plt_get_handle (deadbeef->plt_get_curr ())); + deadbeef->pl_unlock (); main_refresh (); } @@ -575,6 +585,9 @@ on_group_by_custom_activate (GtkMenuItem *menuitem, strncpy (group_by_str, text, sizeof (group_by_str)); group_by_str[sizeof (group_by_str)-1] = 0; deadbeef->conf_set_str ("playlist.group_by", group_by_str); + deadbeef->pl_lock (); + deadbeef->plt_modified (deadbeef->plt_get_handle (deadbeef->plt_get_curr ())); + deadbeef->pl_unlock (); main_refresh (); } gtk_widget_destroy (dlg); |