From: Richard Kettlewell Date: Sat, 14 Nov 2009 11:39:38 +0000 (+0000) Subject: Merge drag+drop rewrite. It's now possible to drag multiple rows in X-Git-Tag: 5.0~67 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/591bec8587c71a025bcc83092145b0ef9ffbe944 Merge drag+drop rewrite. It's now possible to drag multiple rows in one operation in the queue. --- 591bec8587c71a025bcc83092145b0ef9ffbe944 diff --cc disobedience/queue-generic.c index 19cef75,045b38a..e4af2e3 --- a/disobedience/queue-generic.c +++ b/disobedience/queue-generic.c @@@ -41,6 -41,19 +41,15 @@@ #include "popup.h" #include "queue-generic.h" -static struct queuelike *const queuelikes[] = { - &ql_queue, &ql_recent, &ql_added -}; -#define NQUEUELIKES (sizeof queuelikes / sizeof *queuelikes) + + static const GtkTargetEntry queuelike_targets[] = { + { + (char *)"text/x-disorder-track-data", /* drag type */ + GTK_TARGET_SAME_WIDGET, /* rearrangement only for now */ + 0 /* ID value */ + }, + }; + /* Track detail lookup ----------------------------------------------------- */ static void queue_lookups_completed(const char attribute((unused)) *event,