From: Richard Kettlewell Date: Tue, 24 Nov 2009 20:37:24 +0000 (+0000) Subject: Quieten debugging X-Git-Tag: 5.0~45^2~7 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/53ce677c9e2bd08ab5e78f737226a7aa2ea94d8e Quieten debugging --- diff --git a/disobedience/playlists.c b/disobedience/playlists.c index 609275e..7c02702 100644 --- a/disobedience/playlists.c +++ b/disobedience/playlists.c @@ -926,11 +926,11 @@ static void playlist_drop_modify(struct playlist_modify_data *mod, char **newvec; int nnewvec; - fprintf(stderr, "\nplaylist_drop_modify\n"); + //fprintf(stderr, "\nplaylist_drop_modify\n"); /* after_me is the queue_entry to insert after, or NULL to insert at the * beginning (including the case when the playlist is empty) */ - fprintf(stderr, "after_me = %s\n", - mod->after_me ? mod->after_me->track : "NULL"); + //fprintf(stderr, "after_me = %s\n", + // mod->after_me ? mod->after_me->track : "NULL"); struct queue_entry *q = ql_playlist.q; int ins = 0; if(mod->after_me) { diff --git a/disobedience/queue-generic.c b/disobedience/queue-generic.c index e2fd48a..de86f29 100644 --- a/disobedience/queue-generic.c +++ b/disobedience/queue-generic.c @@ -650,13 +650,13 @@ static void ql_drag_data_get_collect(GtkTreeModel *model, static void ql_drag_data_get(GtkWidget attribute((unused)) *w, GdkDragContext attribute((unused)) *dc, GtkSelectionData *data, - guint info, + guint attribute((unused)) info, guint attribute((unused)) time_, gpointer user_data) { struct queuelike *const ql = user_data; struct dynstr result[1]; - fprintf(stderr, "ql_drag_data_get %s info=%d\n", ql->name, info); + //fprintf(stderr, "ql_drag_data_get %s info=%d\n", ql->name, info); dynstr_init(result); gtk_tree_selection_selected_foreach(ql->selection, ql_drag_data_get_collect, @@ -697,7 +697,7 @@ static void ql_drag_data_received(GtkWidget attribute((unused)) *w, struct vector ids[1], tracks[1]; int parity = 0; - fprintf(stderr, "drag-data-received: %d,%d info_=%u\n", x, y, info_); + //fprintf(stderr, "drag-data-received: %d,%d info=%u\n", x, y, info_); /* Get the selection string */ p = result = (char *)gtk_selection_data_get_text(data); if(!result) { @@ -730,18 +730,21 @@ static void ql_drag_data_received(GtkWidget attribute((unused)) *w, GtkTreePath *path = ql_drop_path(w, GTK_TREE_MODEL(ql->store), x, y, &pos); if(path) { q = ql_path_to_q(GTK_TREE_MODEL(ql->store), path); + //fprintf(stderr, " drop path: %s q=%p pos=%d\n", + // gtk_tree_path_to_string(path), q, pos); } else { /* This generally means a drop past the end of the queue. We find the last * element in the queue and ask to move after that. */ for(q = ql->q; q && q->next; q = q->next) ; + //fprintf(stderr, " after end. q=%p. pos=%d\n", q, pos); } switch(pos) { case GTK_TREE_VIEW_DROP_BEFORE: case GTK_TREE_VIEW_DROP_INTO_OR_BEFORE: if(q) { q = q->prev; - //fprintf(stderr, " ...but we like to drop near %s\n", + //fprintf(stderr, " but we like to drop near %s\n", // q ? q->id : "NULL"); } break;