summaryrefslogtreecommitdiffstats
path: root/iw/partition_ui_helpers_gui.py
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2009-12-09 01:12:59 -0600
committerDavid Lehman <dlehman@redhat.com>2009-12-09 15:12:59 -0600
commit429d97802d036413ddfc3f60148a39618e032b6e (patch)
treef1b56d37dcfa08205ef4d4def18435da5c80d38a /iw/partition_ui_helpers_gui.py
parent0c2f4b7cdc8dac92611d2a4661396a07b7b4f9c4 (diff)
downloadanaconda-429d97802d036413ddfc3f60148a39618e032b6e.tar.gz
anaconda-429d97802d036413ddfc3f60148a39618e032b6e.tar.xz
anaconda-429d97802d036413ddfc3f60148a39618e032b6e.zip
Add per-row control over sensitive property for CheckList and WideCheckList.
This is optional. To enable it, add a boolean column as the last column of the TreeStore you pass in and specify 'sensitivity=True' when instantiating WideCheckBox or CheckBox.
Diffstat (limited to 'iw/partition_ui_helpers_gui.py')
-rw-r--r--iw/partition_ui_helpers_gui.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/iw/partition_ui_helpers_gui.py b/iw/partition_ui_helpers_gui.py
index 5a6648235..39b2561f2 100644
--- a/iw/partition_ui_helpers_gui.py
+++ b/iw/partition_ui_helpers_gui.py
@@ -48,9 +48,10 @@ class WideCheckList(checklist.CheckList):
checklist.CheckList.toggled_item(self, data, row)
- def __init__(self, columns, store, clickCB=None):
- checklist.CheckList.__init__(self, columns=columns,
- custom_store=store)
+ def __init__(self, columns, store, clickCB=None, sensitivity=False):
+ checklist.CheckList.__init__(self, columns=columns,
+ custom_store=store,
+ sensitivity=sensitivity)
# make checkbox column wider
column = self.get_column(columns)