chiark / gitweb /
Disobedience now honors config->short_display. This is a bit grotty
authorRichard Kettlewell <rjk@greenend.org.uk>
Mon, 19 Nov 2007 17:01:19 +0000 (17:01 +0000)
committerRichard Kettlewell <rjk@greenend.org.uk>
Mon, 19 Nov 2007 17:01:19 +0000 (17:01 +0000)
as we have access to enough information to do a better job of
truncation, but it'll do for now.

disobedience/queue.c

index fb1b73ea2df15219ab4c708005fb1e3ae16af142..7565935dce915c2e21bbe6faaf84baa68da253c4 100644 (file)
@@ -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 */