From: Christian Dywan Date: Wed, 29 Aug 2012 18:26:47 +0000 (+0200) Subject: Ellipsize text column in Addons panel X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5d0c3ad5d9c7e91805393a2d4727a0e89063451;p=midori Ellipsize text column in Addons panel --- 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