Use widget instead of type to set column fixed

issue6696
review43371002
This commit is contained in:
Cédric Krier committed 2017-08-31 23:42:58 +02:00
1 parent eadae22a7c
commit f8df73da42
1 file changed
+1 -1
+1 -1
View File
@@ -515,7 +515,7 @@ class ViewTree(View):
expand = attributes.get('expand', False)
column.set_expand(expand)
column.set_resizable(True)
if not field or field.attrs['type'] != 'text':
if attributes.get('widget') != 'text':
column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED)
def get_column_widget(self, column):