[gparted] Change behavior to better align with GNOME HIG on drop-down lists



commit b74dba4f679aa1a9adbea1daf09014711c05f5cd
Author: Curtis Gedak <gedakc gmail com>
Date:   Wed May 26 17:33:38 2010 -0600

    Change behavior to better align with GNOME HIG on drop-down lists
    
    Quote from GNOME Human Interface Guidelines 2.2.1 on Drop-down lists:
    
         "Selecting an item from a drop-down list should not affect the
         values of any other controls. It may sensitize, insensitize, hide
         or show other controls, however."

 src/Dialog_Partition_New.cc |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/src/Dialog_Partition_New.cc b/src/Dialog_Partition_New.cc
index 3bfcfe1..ff3ed8d 100644
--- a/src/Dialog_Partition_New.cc
+++ b/src/Dialog_Partition_New.cc
@@ -265,12 +265,7 @@ void Dialog_Partition_New::optionmenu_changed( bool type )
 	{
 		fs = FILESYSTEMS[ optionmenu_filesystem .get_history() ] ;
 
-		if ( optionmenu_alignment .get_history() == ALIGN_CYLINDER )
-		{
-			if ( (fs .MIN / selected_partition .sector_size) < cylinder_size )
-				fs .MIN = cylinder_size * selected_partition .sector_size ;
-		}
-		else if ( fs .MIN < MEBIBYTE )
+		if ( fs .MIN < MEBIBYTE )
 			fs .MIN = MEBIBYTE ;
 
 		if ( selected_partition .get_byte_length() < fs .MIN )



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]