diff options
author | waker <wakeroid@gmail.com> | 2011-05-10 21:34:49 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-05-10 21:34:49 +0200 |
commit | 9d529eb05995069583ffa3e07670c0ea23b42b15 (patch) | |
tree | 055c27ab1954e8a8493a519bc5de9d27807293a9 /plugins/gtkui/mainplaylist.c | |
parent | 1a8737e1466a3c17d77ab30e2035472feb7c2773 (diff) |
added several new plt_* functions to work on specific playlists
Diffstat (limited to 'plugins/gtkui/mainplaylist.c')
-rw-r--r-- | plugins/gtkui/mainplaylist.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/gtkui/mainplaylist.c b/plugins/gtkui/mainplaylist.c index 1611f03d..f3cbde3d 100644 --- a/plugins/gtkui/mainplaylist.c +++ b/plugins/gtkui/mainplaylist.c @@ -107,15 +107,16 @@ int main_get_idx (DdbListviewIter it) { } void -main_drag_n_drop (DdbListviewIter before, int from_playlist, uint32_t *indices, int length, int copy) { +main_drag_n_drop (DdbListviewIter before, ddb_playlist_t *from_playlist, uint32_t *indices, int length, int copy) { deadbeef->pl_lock (); -// int curr = deadbeef->plt_get_curr_idx (); + ddb_playlist_t *plt = deadbeef->plt_get_curr (); if (copy) { - deadbeef->pl_copy_items (PL_MAIN, from_playlist, (DB_playItem_t *)before, indices, length); + deadbeef->plt_copy_items (plt, PL_MAIN, from_playlist, (DB_playItem_t *)before, indices, length); } else { - deadbeef->pl_move_items (PL_MAIN, from_playlist, (DB_playItem_t *)before, indices, length); + deadbeef->plt_move_items (plt, PL_MAIN, from_playlist, (DB_playItem_t *)before, indices, length); } + deadbeef->plt_unref (plt); deadbeef->pl_unlock (); } |