From 50f38f4b91098f103d244ffb7f0a545bc40667e2 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 14 Aug 2012 00:36:18 +0200 Subject: [PATCH] Ellipsize text in Transfers panel --- panels/midori-transfers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panels/midori-transfers.c b/panels/midori-transfers.c index ea73f3a1..44e8873b 100644 --- a/panels/midori-transfers.c +++ b/panels/midori-transfers.c @@ -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); -- 2.39.5