diff options
author | waker <wakeroid@gmail.com> | 2011-04-13 21:03:52 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-04-13 21:15:54 +0200 |
commit | a0116d4496107e368b791d86295834c6e844a6e8 (patch) | |
tree | 0294bd3a66ea21a634190016bb6065c9c6f86b33 /plugins/gtkui/mainplaylist.c | |
parent | 8d6dab0928866350d981793cd9207d0fb284fb4d (diff) |
got rid of plt_lock and global_lock in favor of just using pl_lock for all playlist access;
added playlist modification time functions for tracking playlist changes;
fixed gtkui playlist group rebuilding
Diffstat (limited to 'plugins/gtkui/mainplaylist.c')
-rw-r--r-- | plugins/gtkui/mainplaylist.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/gtkui/mainplaylist.c b/plugins/gtkui/mainplaylist.c index 340cbfb3..0c736150 100644 --- a/plugins/gtkui/mainplaylist.c +++ b/plugins/gtkui/mainplaylist.c @@ -108,7 +108,7 @@ int main_get_idx (DdbListviewIter it) { void main_drag_n_drop (DdbListviewIter before, int from_playlist, uint32_t *indices, int length, int copy) { - deadbeef->plt_lock (); + deadbeef->pl_lock (); int curr = deadbeef->plt_get_curr (); if (copy) { deadbeef->pl_copy_items (PL_MAIN, from_playlist, (DB_playItem_t *)before, indices, length); @@ -116,7 +116,7 @@ main_drag_n_drop (DdbListviewIter before, int from_playlist, uint32_t *indices, else { deadbeef->pl_move_items (PL_MAIN, from_playlist, (DB_playItem_t *)before, indices, length); } - deadbeef->plt_unlock (); + deadbeef->pl_unlock (); } void main_external_drag_n_drop (DdbListviewIter before, char *mem, int length) { @@ -284,6 +284,7 @@ DdbListviewBinding main_binding = { .list_context_menu = list_context_menu, .delete_selected = main_delete_selected, .vscroll_changed = main_vscroll_changed, + .modification_time = gtkui_get_curr_playlist_modtime, }; void |