]> spindle.queued.net Git - midori/commitdiff
Ellipsize text in Transfers panel
authorChristian Dywan <christian@twotoasts.de>
Mon, 13 Aug 2012 22:36:18 +0000 (00:36 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 13 Aug 2012 22:38:04 +0000 (00:38 +0200)
panels/midori-transfers.c

index ea73f3a12a4a3b3f55422f88bda79f9146f2dc4f..44e8873b5765db91951ec9e7c9934beab61917cf 100644 (file)
@@ -263,7 +263,6 @@ midori_transfers_treeview_render_text_cb (GtkTreeViewColumn* column,
 
     gtk_tree_model_get (model, iter, 1, &download, -1);
 
-    /* FIXME: Ellipsize filename */
     current = g_format_size (webkit_download_get_current_size (download));
     total = g_format_size (webkit_download_get_total_size (download));
     size_text = g_strdup_printf (_("%s of %s"), current, total);
@@ -279,6 +278,7 @@ midori_transfers_treeview_render_text_cb (GtkTreeViewColumn* column,
     else
         progress = 0.0;
     g_object_set (renderer, "text", text,
+                  "ellipsize", PANGO_ELLIPSIZE_END,
                   "value", (gint)(progress * 100),
                   "xpad", 1, "ypad", 6, NULL);
     g_free (text);