[Xfce4-commits] <midori:master> Ellipsize text in Transfers panel

Christian Dywan noreply at xfce.org
Tue Aug 14 00:40:04 CEST 2012


Updating branch refs/heads/master
         to 50f38f4b91098f103d244ffb7f0a545bc40667e2 (commit)
       from 6f3eb6fd62a1ab4c4a1c5f9ddf961b9459e49188 (commit)

commit 50f38f4b91098f103d244ffb7f0a545bc40667e2
Author: Christian Dywan <christian at twotoasts.de>
Date:   Tue Aug 14 00:36:18 2012 +0200

    Ellipsize text in Transfers panel

 panels/midori-transfers.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/panels/midori-transfers.c b/panels/midori-transfers.c
index ea73f3a..44e8873 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);


More information about the Xfce4-commits mailing list