[yast-commit] r65423 - in /branches/SuSE-Code-11-SP2-Branch/storage: package/yast2-storage.changes storage/src/inst_disk_proposal.ycp storage/src/modules/StorageProposal.ycp
![](https://seccdn.libravatar.org/avatar/bb376bca2c19e74eb46fa87c724f1105.jpg?s=120&d=mm&r=g)
Author: fehr Date: Mon Aug 29 14:44:31 2011 New Revision: 65423 URL: http://svn.opensuse.org/viewcvs/yast?rev=65423&view=rev Log: use less space for proposal in ncurses (bnc#713314) Modified: branches/SuSE-Code-11-SP2-Branch/storage/package/yast2-storage.changes branches/SuSE-Code-11-SP2-Branch/storage/storage/src/inst_disk_proposal.ycp branches/SuSE-Code-11-SP2-Branch/storage/storage/src/modules/StorageProposal.ycp Modified: branches/SuSE-Code-11-SP2-Branch/storage/package/yast2-storage.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/storage/package/yast2-storage.changes?rev=65423&r1=65422&r2=65423&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/storage/package/yast2-storage.changes (original) +++ branches/SuSE-Code-11-SP2-Branch/storage/package/yast2-storage.changes Mon Aug 29 14:44:31 2011 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Mon Aug 29 14:37:26 CEST 2011 - fehr@suse.de + +- use less space for proposal in ncurses (bnc#713314) + +------------------------------------------------------------------- Wed Aug 24 16:55:01 CEST 2011 - fehr@suse.de - use new "gpt_sync_mbr" only on non-EFI systems, on EFI systems Modified: branches/SuSE-Code-11-SP2-Branch/storage/storage/src/inst_disk_proposal.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/storage/storage/src/inst_disk_proposal.ycp?rev=65423&r1=65422&r2=65423&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/storage/storage/src/inst_disk_proposal.ycp (original) +++ branches/SuSE-Code-11-SP2-Branch/storage/storage/src/inst_disk_proposal.ycp Mon Aug 29 14:44:31 2011 @@ -193,6 +193,7 @@ `PushButton( `id(`modify), modify_str ) ); +float space = StorageProposal::SaveHeight()?1:2; term contents = `VBox( @@ -202,7 +203,7 @@ `VBox( `MinHeight(8, `RichText(`id(`richtext), changes)), rframe, - `VSpacing(2), + `VSpacing(space), bframe, `VStretch() ), Modified: branches/SuSE-Code-11-SP2-Branch/storage/storage/src/modules/StorageProposal.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/storage/storage/src/modules/StorageProposal.ycp?rev=65423&r1=65422&r2=65423&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/storage/storage/src/modules/StorageProposal.ycp (original) +++ branches/SuSE-Code-11-SP2-Branch/storage/storage/src/modules/StorageProposal.ycp Mon Aug 29 14:44:31 2011 @@ -4097,9 +4097,21 @@ return ret; } +global boolean SaveHeight() + { + map display_info = UI::GetDisplayInfo(); + boolean ret = false; + if( display_info["TextMode"]:false && display_info["Height"]:24 < 40 ) + ret = true; + return(ret); + } + global term AddCommonWidgets() { term vb = `VBox(); + float space = 0.5; + if( SaveHeight() ) + space = 0; vb = add( vb, `Left(`HBox(`HSpacing(3), `CheckBox(`id(`lvm), `opt(`notify), // Label text @@ -4108,19 +4120,19 @@ `Left(`HBox(`HSpacing(7), `CheckBox(`id(`encrypt), `opt(`notify), // Label text _("Encr&ypt Volume Group"), GetProposalEncrypt())))); - vb = add( vb, `VSpacing(0.5) ); + vb = add( vb, `VSpacing(space) ); vb = add( vb, `Left(`HBox(`HSpacing(3), `CheckBox( `id(`home), `opt(`notify), // Label text _("Propose Separate &Home Partition"), GetProposalHome() )))); - vb = add( vb, `VSpacing(0.5) ); + vb = add( vb, `VSpacing(space) ); vb = add( vb, `Left(`HBox(`HSpacing(3), `CheckBox(`id(`btrfs), `opt(`notify), // Label text _("Use &Btrfs as default Filesystem"), GetProposalBtrfs() )))); - term frame = `VBox( `VSpacing(1.5), + term frame = `VBox( `VSpacing(3*space), `HVCenter( `VBox( `Left(`Label( `opt(`boldFont), _("Proposal settings"))), `VSpacing(0.3), `HVCenter(vb)) )); //`HVCenter(`Frame( _("Proposal settings"), `HVCenter(vb) ))); y2milestone( "AddCommonWidgets Home:%1 Btrfs:%2", GetProposalHome(), -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
fehr@svn2.opensuse.org