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/ddbtabstrip.c | |
parent | 1a8737e1466a3c17d77ab30e2035472feb7c2773 (diff) |
added several new plt_* functions to work on specific playlists
Diffstat (limited to 'plugins/gtkui/ddbtabstrip.c')
-rw-r--r-- | plugins/gtkui/ddbtabstrip.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/gtkui/ddbtabstrip.c b/plugins/gtkui/ddbtabstrip.c index 8539a10d..f40c1ade 100644 --- a/plugins/gtkui/ddbtabstrip.c +++ b/plugins/gtkui/ddbtabstrip.c @@ -270,7 +270,11 @@ on_tabstrip_drag_data_received (GtkWidget *widget, int plt = *d; d++; int length = (data->length/4)-1; - ps->binding->drag_n_drop (NULL, plt, d, length, drag_context->action == GDK_ACTION_COPY ? 1 : 0); + ddb_playlist_t *p = deadbeef->plt_get_for_idx (plt); + if (p) { + ps->binding->drag_n_drop (NULL, p, d, length, drag_context->action == GDK_ACTION_COPY ? 1 : 0); + deadbeef->plt_unref (p); + } } gtk_drag_finish (drag_context, TRUE, FALSE, time); } |