Ellipsize text column in Addons panel
This commit is contained in:
parent
0668aba7cc
commit
f5d0c3ad5d
1 changed files with 4 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue