Ellipsize text column in Addons panel

This commit is contained in:
Christian Dywan 2012-08-29 20:26:47 +02:00
parent 0668aba7cc
commit f5d0c3ad5d

View file

@ -777,11 +777,10 @@ addons_treeview_render_text_cb (GtkTreeViewColumn* column,
gtk_tree_model_get (model, iter, 0, &element, -1); gtk_tree_model_get (model, iter, 0, &element, -1);
g_object_set (renderer, "text", element->displayname, NULL); g_object_set (renderer, "text", element->displayname,
if (!element->enabled) "sensitive", element->enabled,
g_object_set (renderer, "sensitive", false, NULL); "ellipsize", PANGO_ELLIPSIZE_END,
else NULL);
g_object_set (renderer, "sensitive", true, NULL);
} }
static void static void