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 > Redhat > Fedora Infrastructure

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

Check the resizable property as well as targetSize not being zero
(indicates no new targetSize has been set) and finally compare
targetSize to currentSize.
---
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)

--
1.6.2

_______________________________________________
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 10:18 AM.

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