summaryrefslogtreecommitdiffstats
path: root/iw/partition_ui_helpers_gui.py
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2009-03-03 18:15:17 -1000
committerDavid Cantrell <dcantrell@redhat.com>2009-03-03 19:49:37 -1000
commit65f40c6a81f5241f715d410a3d5012fa9b57b78c (patch)
tree69b73addb9b3d320c1f6598c4f06dd56c2b1f0ea /iw/partition_ui_helpers_gui.py
parent8fe8f5478e84adbe28cca63d72b9ea6552ae79e9 (diff)
downloadanaconda-65f40c6a81f5241f715d410a3d5012fa9b57b78c.tar.gz
anaconda-65f40c6a81f5241f715d410a3d5012fa9b57b78c.tar.xz
anaconda-65f40c6a81f5241f715d410a3d5012fa9b57b78c.zip
More UI plumbing for filesystem migration support.
Fixes for the edit partition dialog.
Diffstat (limited to 'iw/partition_ui_helpers_gui.py')
-rw-r--r--iw/partition_ui_helpers_gui.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/iw/partition_ui_helpers_gui.py b/iw/partition_ui_helpers_gui.py
index 87d816fe8..b8cae4a6b 100644
--- a/iw/partition_ui_helpers_gui.py
+++ b/iw/partition_ui_helpers_gui.py
@@ -250,11 +250,16 @@ def formatOptionResizeCB(widget, resizesb):
resizesb.set_value(adj.lower)
def formatMigrateOptionCB(widget, data):
+ (sensitive,) = widget.get_properties('sensitive')
+ if not sensitive:
+ return
+
(combowidget, mntptcombo, ofstype, lukscb, othercombo, othercb) = data
combowidget.set_sensitive(widget.get_active())
if othercb is not None:
othercb.set_sensitive(not widget.get_active())
+ othercb.set_active(False)
if othercombo is not None:
othercombo.set_sensitive(not widget.get_active())
@@ -274,6 +279,9 @@ def formatMigrateOptionCB(widget, data):
setMntPtComboStateFromType(fstype, mntptcombo)
combowidget.grab_focus()
else:
+ if isinstance(ofstype, type(ofstype)):
+ ofstype = type(ofstype)
+
setMntPtComboStateFromType(ofstype, mntptcombo)
def noformatCB(widget, data):