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 > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 03-24-2009, 11:37 PM
David Lehman
 
Default Do not flag every existing partition for resize (#491803)

On Tue, 2009-03-24 at 14:27 -1000, David Cantrell wrote:
> Check the resizable property as well as targetSize not being zero
> (indicates no new targetSize has been set) and finally compare
> targetSize to currentSize.

Looks good.

> ---
> iw/partition_ui_helpers_gui.py | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/iw/partition_ui_helpers_gui.py b/iw/partition_ui_helpers_gui.py
> index 4c273f2..9d7f7c5 100644
> --- a/iw/partition_ui_helpers_gui.py
> +++ b/iw/partition_ui_helpers_gui.py
> @@ -349,7 +349,9 @@ def createPreExistFSOptionSection(origrequest, maintable, row, mountCombo,
>
> if origrequest.resizable:
> resizecb = gtk.CheckButton(label=_("_Resize"))
> - resizecb.set_active(origrequest.targetSize != origrequest.currentSize)
> + resizecb.set_active(origrequest.resizable and
> + ((origrequest.targetSize != 0) and
> + (origrequest.targetSize != origrequest.currentSize)))
> rc["resizecb"] = resizecb
> maintable.attach(resizecb, 0, 1, row, row + 1)
>

_______________________________________________
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 07:55 AM.

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