FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 03-04-2009, 03:19 AM
David Cantrell
 
Default More UI plumbing for filesystem migration support.

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):
--
1.6.1.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-04-2009, 03:59 AM
David Lehman
 
Default 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
 

Thread Tools




All times are GMT. The time now is 09:52 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org