More UI plumbing for filesystem migration support.
Ack.
On Tue, 2009-03-03 at 18:19 -1000, David Cantrell wrote:
> Fixes for the edit partition dialog.
> ---
> iw/partition_ui_helpers_gui.py | 8 ++++++++
> 1 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/iw/partition_ui_helpers_gui.py b/iw/partition_ui_helpers_gui.py
> index 87d816f..b8cae4a 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):
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
|