aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-01-20 15:55:29 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-01-20 15:55:29 +0000
commit41c5e170269594d1ccb6f95c5a2c3bee452d077c (patch)
treeb318666ecc0eea3191559a021894d1f53533de8f /src
parent3c2945ca618ad039fa8989450d7a94ba2089294b (diff)
downloadmsec-41c5e170269594d1ccb6f95c5a2c3bee452d077c.tar
msec-41c5e170269594d1ccb6f95c5a2c3bee452d077c.tar.gz
msec-41c5e170269594d1ccb6f95c5a2c3bee452d077c.tar.bz2
msec-41c5e170269594d1ccb6f95c5a2c3bee452d077c.tar.xz
msec-41c5e170269594d1ccb6f95c5a2c3bee452d077c.zip
Better options spacing and expanding.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/msec/msecgui.py16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/msec/msecgui.py b/src/msec/msecgui.py
index 39102e6..3cbd126 100755
--- a/src/msec/msecgui.py
+++ b/src/msec/msecgui.py
@@ -404,19 +404,24 @@ class MsecGui:
# configuring columns
# column for option names
- column = gtk.TreeViewColumn(_('Security Option'), gtk.CellRendererText(), text=self.COLUMN_OPTION)
+ renderer = gtk.CellRendererText()
+ renderer.set_property('width', 200)
+ column = gtk.TreeViewColumn(_('Security Option'), renderer, text=self.COLUMN_OPTION, weight=self.COLUMN_CUSTOM)
column.set_sort_column_id(self.COLUMN_OPTION)
+ column.set_resizable(True)
+ column.set_expand(True)
treeview.append_column(column)
# column for descriptions
renderer = gtk.CellRendererText()
renderer.set_property('wrap-width', 400)
renderer.set_property('wrap-mode', pango.WRAP_WORD_CHAR)
- treeview.insert_column_with_attributes(-1, _('Description'), renderer, text=self.COLUMN_DESCR, weight=self.COLUMN_CUSTOM)
+ column = treeview.insert_column_with_attributes(-1, _('Description'), renderer, text=self.COLUMN_DESCR, weight=self.COLUMN_CUSTOM)
+ column.set_expand(True)
#treeview.append_column(column)
# column for values
- column = gtk.TreeViewColumn(_('Value'), gtk.CellRendererText(), text=self.COLUMN_VALUE)
+ column = gtk.TreeViewColumn(_('Value'), gtk.CellRendererText(), text=self.COLUMN_VALUE, weight=self.COLUMN_CUSTOM)
column.set_sort_column_id(self.COLUMN_VALUE)
treeview.append_column(column)
@@ -744,21 +749,25 @@ class MsecGui:
# column for path mask
column = gtk.TreeViewColumn(_('Path'), gtk.CellRendererText(), text=self.COLUMN_PATH)
column.set_sort_column_id(self.COLUMN_PATH)
+ column.set_expand(True)
treeview.append_column(column)
# column for user
column = gtk.TreeViewColumn(_('User'), gtk.CellRendererText(), text=self.COLUMN_USER)
column.set_sort_column_id(self.COLUMN_USER)
+ column.set_expand(True)
treeview.append_column(column)
# column for group
column = gtk.TreeViewColumn(_('Group'), gtk.CellRendererText(), text=self.COLUMN_GROUP)
column.set_sort_column_id(self.COLUMN_GROUP)
+ column.set_expand(True)
treeview.append_column(column)
# column for permissions
column = gtk.TreeViewColumn(_('Permissions'), gtk.CellRendererText(), text=self.COLUMN_PERM)
column.set_sort_column_id(self.COLUMN_VALUE)
+ column.set_expand(True)
treeview.append_column(column)
# column for force option
@@ -768,6 +777,7 @@ class MsecGui:
column.set_sort_column_id(self.COLUMN_FORCE)
column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED)
column.set_fixed_width(50)
+ column.set_expand(True)
treeview.append_column(column)
sw.add(treeview)