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

Christian Dywan noreply at xfce.org
Thu Aug 30 00:44:02 CEST 2012


Updating branch refs/heads/master
         to f5d0c3ad5d9c7e91805393a2d4727a0e89063451 (commit)
       from 0668aba7cc1a9397b6dd276c6e3d052add7f772b (commit)

commit f5d0c3ad5d9c7e91805393a2d4727a0e89063451
Author: Christian Dywan <christian at twotoasts.de>
Date:   Wed Aug 29 20:26:47 2012 +0200

    Ellipsize text column in Addons panel

 extensions/addons.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/extensions/addons.c b/extensions/addons.c
index 4d76634..f84d806 100644
--- a/extensions/addons.c
+++ b/extensions/addons.c
@@ -777,11 +777,10 @@ addons_treeview_render_text_cb (GtkTreeViewColumn* column,
 
     gtk_tree_model_get (model, iter, 0, &element, -1);
 
-    g_object_set (renderer, "text", element->displayname, NULL);
-    if (!element->enabled)
-        g_object_set (renderer, "sensitive", false, NULL);
-    else
-        g_object_set (renderer, "sensitive", true, NULL);
+    g_object_set (renderer, "text", element->displayname,
+                            "sensitive", element->enabled,
+                            "ellipsize", PANGO_ELLIPSIZE_END,
+                            NULL);
 }
 
 static void


More information about the Xfce4-commits mailing list