X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/bb33cc31764d50019c03815719ee442b6016c90e..05fd0aa117566503026dbedfe4d9b0485da2d5ed:/disobedience/queue.c diff --git a/disobedience/queue.c b/disobedience/queue.c index 6c0e136..95ff0d5 100644 --- a/disobedience/queue.c +++ b/disobedience/queue.c @@ -205,9 +205,10 @@ static void queue_drop(struct queuelike attribute((unused)) *ql, /* Tell the server to move them. The log will tell us about the change (if * indeed it succeeds!), so no need to rearrange the model now. */ disorder_eclient_moveafter(client, + queue_drop_completed, after_me ? after_me->id : "", - ntracks, (const char **)ids, - queue_drop_completed, NULL); + (char **)ids, ntracks, + NULL); } else { /* You can't tell the server to insert after the playing track by ID, you * have to send "". */ @@ -215,9 +216,10 @@ static void queue_drop(struct queuelike attribute((unused)) *ql, after_me = NULL; /* Play the tracks */ disorder_eclient_playafter(client, + queue_drop_completed, after_me ? after_me->id : "", - ntracks, (const char **)tracks, - queue_drop_completed, NULL); + (char **)tracks, ntracks, + NULL); } } @@ -233,12 +235,12 @@ static const struct queue_column queue_columns[] = { /** @brief Pop-up menu for queue */ static struct menuitem queue_menuitems[] = { - { "Track properties", ql_properties_activate, ql_properties_sensitive, 0, 0 }, - { "Select all tracks", ql_selectall_activate, ql_selectall_sensitive, 0, 0 }, - { "Deselect all tracks", ql_selectnone_activate, ql_selectnone_sensitive, 0, 0 }, - { "Scratch playing track", ql_scratch_activate, ql_scratch_sensitive, 0, 0 }, - { "Remove track from queue", ql_remove_activate, ql_remove_sensitive, 0, 0 }, - { "Adopt track", ql_adopt_activate, ql_adopt_sensitive, 0, 0 }, + { "Track properties", GTK_STOCK_PROPERTIES, ql_properties_activate, ql_properties_sensitive, 0, 0 }, + { "Select all tracks", GTK_STOCK_SELECT_ALL, ql_selectall_activate, ql_selectall_sensitive, 0, 0 }, + { "Deselect all tracks", NULL, ql_selectnone_activate, ql_selectnone_sensitive, 0, 0 }, + { "Scratch playing track", GTK_STOCK_STOP, ql_scratch_activate, ql_scratch_sensitive, 0, 0 }, + { "Remove track from queue", GTK_STOCK_DELETE, ql_remove_activate, ql_remove_sensitive, 0, 0 }, + { "Adopt track", NULL, ql_adopt_activate, ql_adopt_sensitive, 0, 0 }, }; static const GtkTargetEntry queue_targets[] = {