X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/33288048f694a84b9c40653f0b72b4ce44a94ab1..299a14ee0d61b7994dc4ce5246b55b4d75fdcb2e:/disobedience/queue.c diff --git a/disobedience/queue.c b/disobedience/queue.c index 2469f25..7565935 100644 --- a/disobedience/queue.c +++ b/disobedience/queue.c @@ -55,6 +55,7 @@ */ #include "disobedience.h" +#include "charset.h" /** @brief Horizontal padding for queue cells */ #define HCELLPADDING 4 @@ -430,7 +431,8 @@ static GtkWidget *column_namepart(const struct queuelike const char *data) { D(("column_namepart")); NW(label); - return gtk_label_new(namepart(q->track, "display", data)); + return gtk_label_new(truncate_for_display(namepart(q->track, "display", data), + config->short_display)); } /** @brief Compute the length field */ @@ -508,7 +510,7 @@ static void update_queue(struct queuelike *ql, struct queue_entry *newq) { /** @brief Wrap up a widget for putting into the queue or title * @param label Label to contain - * @param color Pointer to color + * @param style Pointer to style to use * @param wp Updated with maximum width (or NULL) * @return New widget */