From f5d0c3ad5d9c7e91805393a2d4727a0e89063451 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Wed, 29 Aug 2012 20:26:47 +0200 Subject: [PATCH] Ellipsize text column in Addons panel --- extensions/addons.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/extensions/addons.c b/extensions/addons.c index 4d76634b..f84d8068 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 -- 2.39.5