diff options
author | 2009-11-30 22:10:09 +0100 | |
---|---|---|
committer | 2009-11-30 22:10:09 +0100 | |
commit | 576b8419ed5b8d4e586151d8965d1d5f89624ee1 (patch) | |
tree | ee6ee3407ef4ed1b78b2c57cd0ff45b86789a8c3 /plugins/gtkui/gtkplaylist.c | |
parent | 2181dcac0261f9036f0efec4390d47639fe6aa10 (diff) |
ported filemanager dnd into gtkui
Diffstat (limited to 'plugins/gtkui/gtkplaylist.c')
-rw-r--r-- | plugins/gtkui/gtkplaylist.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/plugins/gtkui/gtkplaylist.c b/plugins/gtkui/gtkplaylist.c index 2186af2a..358b5a38 100644 --- a/plugins/gtkui/gtkplaylist.c +++ b/plugins/gtkui/gtkplaylist.c @@ -1191,16 +1191,6 @@ gtkpl_track_dragdrop (gtkplaylist_t *ps, int y) { } void -gtkpl_handle_drag_drop (gtkplaylist_t *ps, int drop_y, uint32_t *d, int length) { - int drop_row = drop_y / rowheight + ps->scrollpos; - DB_playItem_t *drop_before = deadbeef->pl_get_for_idx_and_iter (drop_row, ps->iterator); - while (drop_before && SELECTED (drop_before)) { - drop_before = PL_NEXT(drop_before, ps->iterator); - } - deadbeef->pl_move_items (ps->iterator, drop_before, d, length); -} - -void on_playlist_drag_end (GtkWidget *widget, GdkDragContext *drag_context, gpointer user_data) @@ -1324,16 +1314,6 @@ gtkpl_add_fm_dropped_files (gtkplaylist_t *ps, char *ptr, int length, int drop_y } void -gtkpl_handle_fm_drag_drop (gtkplaylist_t *ps, int drop_y, void *ptr, int length) { - // this happens when dropped from file manager - char *mem = malloc (length+1); - memcpy (mem, ptr, length); - mem[length] = 0; - // we don't pass control structure, but there's only one drag-drop view currently - deadbeef->sendmessage (M_FMDRAGDROP, (uintptr_t)mem, length, drop_y); -} - -void gtkpl_header_draw (gtkplaylist_t *ps) { GtkWidget *widget = ps->header; int x = -ps->hscrollpos; |