+/** @brief Play all children */
+static void choose_playchildren_activate
+ (GtkMenuItem attribute((unused)) *item,
+ gpointer attribute((unused)) userdata) {
+ /* Only one thing is selected */
+ gtk_tree_selection_selected_foreach(choose_selection,
+ choose_playchildren_callback,
+ 0);
+}
+
+static void choose_playchildren_callback(GtkTreeModel attribute((unused)) *model,
+ GtkTreePath *path,
+ GtkTreeIter *iter,
+ gpointer attribute((unused)) data) {
+ /* Find the children and play them */
+ disorder_eclient_files(client, choose_playchildren_received,
+ choose_get_track(iter),
+ NULL/*re*/,
+ NULL);
+ /* Expand the node */
+ gtk_tree_view_expand_row(GTK_TREE_VIEW(choose_view), path, FALSE);
+}
+
+static void choose_playchildren_received(void attribute((unused)) *v,
+ const char *err,
+ int nvec, char **vec) {
+ if(err) {
+ popup_protocol_error(0, err);
+ return;
+ }
+ for(int n = 0; n < nvec; ++n)
+ disorder_eclient_play(client, vec[n], choose_playchildren_played, NULL);
+}
+
+static void choose_playchildren_played(void attribute((unused)) *v,
+ const char *err) {
+ if(err) {
+ popup_protocol_error(0, err);
+ return;
+ }
+}
+