Commit b496e017 authored by step-'s avatar step-

fix ellipsize always START and no ellipsize-cols

before this fix --ellipsize=END/MIDDLE turned into START and --ellipsize-cols=... was ignored (all columns were ellipsized).
parent af3b2040
......@@ -351,7 +351,8 @@ add_columns (gint n_columns)
column = gtk_tree_view_column_new_with_attributes (col->name, renderer, "text", i, NULL);
else
column = gtk_tree_view_column_new_with_attributes (col->name, renderer, "markup", i, NULL);
g_object_set (G_OBJECT (renderer), "ellipsize", col->ellipsize, NULL);
if (col->ellipsize)
g_object_set (G_OBJECT (renderer), "ellipsize", options.list_data.ellipsize, NULL);
if (col->wrap)
{
g_object_set (G_OBJECT (renderer), "wrap-width", options.list_data.wrap_width, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment