improvement in GUI on expand of displaytabs
svn: r16011
This commit is contained in:
parent
ac5693c97f
commit
7b66d246b8
@ -443,6 +443,7 @@ class EmbeddedList(ButtonTab):
|
|||||||
# insert the colum into the tree
|
# insert the colum into the tree
|
||||||
column.set_resizable(True)
|
column.set_resizable(True)
|
||||||
column.set_clickable(True)
|
column.set_clickable(True)
|
||||||
|
column.set_expand(True)
|
||||||
column.set_min_width(self._column_names[pair[1]][2])
|
column.set_min_width(self._column_names[pair[1]][2])
|
||||||
column.set_sort_column_id(self._column_names[pair[1]][1])
|
column.set_sort_column_id(self._column_names[pair[1]][1])
|
||||||
self.columns.append(column)
|
self.columns.append(column)
|
||||||
|
@ -77,7 +77,7 @@ class SurnameTab(EmbeddedList):
|
|||||||
(_('Connector'), -1, 100, 0, -1),
|
(_('Connector'), -1, 100, 0, -1),
|
||||||
]
|
]
|
||||||
_column_combo = (_('Origin'), -1, 150, 3) # name, sort, width, modelcol
|
_column_combo = (_('Origin'), -1, 150, 3) # name, sort, width, modelcol
|
||||||
_column_toggle = (_('Primary'), -1, 25, 4)
|
_column_toggle = (_('Primary'), -1, 80, 4)
|
||||||
|
|
||||||
def __init__(self, dbstate, uistate, track, name):
|
def __init__(self, dbstate, uistate, track, name):
|
||||||
self.obj = name
|
self.obj = name
|
||||||
@ -130,6 +130,7 @@ class SurnameTab(EmbeddedList):
|
|||||||
column.set_resizable(True)
|
column.set_resizable(True)
|
||||||
column.set_sort_column_id(self._column_combo[1])
|
column.set_sort_column_id(self._column_combo[1])
|
||||||
column.set_min_width(self._column_combo[2])
|
column.set_min_width(self._column_combo[2])
|
||||||
|
column.set_expand(True)
|
||||||
self.columns.append(column)
|
self.columns.append(column)
|
||||||
self.tree.append_column(column)
|
self.tree.append_column(column)
|
||||||
# toggle box for primary
|
# toggle box for primary
|
||||||
@ -141,7 +142,9 @@ class SurnameTab(EmbeddedList):
|
|||||||
renderer.connect( 'toggled', self.on_prim_toggled, self._column_toggle[3])
|
renderer.connect( 'toggled', self.on_prim_toggled, self._column_toggle[3])
|
||||||
# add to treeview
|
# add to treeview
|
||||||
column = gtk.TreeViewColumn(name, renderer, active=self._column_toggle[3])
|
column = gtk.TreeViewColumn(name, renderer, active=self._column_toggle[3])
|
||||||
column.set_resizable(True)
|
column.set_resizable(False)
|
||||||
|
column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED)
|
||||||
|
column.set_alignment(0.5)
|
||||||
column.set_sort_column_id(self._column_toggle[1])
|
column.set_sort_column_id(self._column_toggle[1])
|
||||||
column.set_min_width(self._column_toggle[2])
|
column.set_min_width(self._column_toggle[2])
|
||||||
self.columns.append(column)
|
self.columns.append(column)
|
||||||
|
Loading…
Reference in New Issue
Block a user