chiark / gitweb /
Merge drag+drop rewrite. It's now possible to drag multiple rows in
authorRichard Kettlewell <rjk@greenend.org.uk>
Sat, 14 Nov 2009 11:39:38 +0000 (11:39 +0000)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sat, 14 Nov 2009 11:39:38 +0000 (11:39 +0000)
one operation in the queue.

1  2 
disobedience/queue-generic.c

  #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,