fix toggle column
This commit is contained in:
parent
56f5e7b7d5
commit
c5cbc29705
|
@ -80,6 +80,7 @@ def add_func_column(view, header, func, data, sortid=None):
|
||||||
column.set_clickable(True)
|
column.set_clickable(True)
|
||||||
column.set_sort_column_id(data)
|
column.set_sort_column_id(data)
|
||||||
column.set_resizable(True)
|
column.set_resizable(True)
|
||||||
|
column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED)
|
||||||
column.set_expand(False)
|
column.set_expand(False)
|
||||||
column.set_min_width(10)
|
column.set_min_width(10)
|
||||||
column.set_reorderable(True)
|
column.set_reorderable(True)
|
||||||
|
@ -95,6 +96,7 @@ def add_text_column(view, header, cid):
|
||||||
column.set_resizable(True)
|
column.set_resizable(True)
|
||||||
column.set_expand(False)
|
column.set_expand(False)
|
||||||
column.set_min_width(10)
|
column.set_min_width(10)
|
||||||
|
column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED)
|
||||||
column.set_reorderable(True)
|
column.set_reorderable(True)
|
||||||
view.append_column(column)
|
view.append_column(column)
|
||||||
return column
|
return column
|
||||||
|
@ -108,6 +110,7 @@ def add_progress_column(view, header, pid, mid):
|
||||||
column.set_expand(False)
|
column.set_expand(False)
|
||||||
column.set_min_width(10)
|
column.set_min_width(10)
|
||||||
column.set_reorderable(True)
|
column.set_reorderable(True)
|
||||||
|
column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED)
|
||||||
view.append_column(column)
|
view.append_column(column)
|
||||||
return column
|
return column
|
||||||
|
|
||||||
|
@ -136,6 +139,7 @@ def add_texticon_column(view, header, icon_col, text_col):
|
||||||
column.pack_start(render, expand=False)
|
column.pack_start(render, expand=False)
|
||||||
column.add_attribute(render, 'pixbuf', icon_col)
|
column.add_attribute(render, 'pixbuf', icon_col)
|
||||||
render = gtk.CellRendererText()
|
render = gtk.CellRendererText()
|
||||||
|
column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED)
|
||||||
column.pack_start(render, expand=True)
|
column.pack_start(render, expand=True)
|
||||||
column.add_attribute(render, 'text', text_col)
|
column.add_attribute(render, 'text', text_col)
|
||||||
view.append_column(column)
|
view.append_column(column)
|
||||||
|
|
Loading…
Reference in New Issue