Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=102408a64786248b2ddf83584f2bb68212395b87

commit 102408a64786248b2ddf83584f2bb68212395b87
Author: James Buren <[email protected]>
Date:   Wed Dec 5 02:39:12 2012 -0600

set initial status of active checkbox to partition's current active status

diff --git a/src/ui_newt.c b/src/ui_newt.c
index 86ce8a8..a69df28 100644
--- a/src/ui_newt.c
+++ b/src/ui_newt.c
@@ -392,6 +392,8 @@ static bool ui_dialog_partition_modify_partition(struct 
disk *disk,int n)

cancel = 
newtButton(NEWT_WIDTH-cancel_width,NEWT_HEIGHT-cancel_height,CANCEL_BUTTON_TEXT);

+  active = (disk_partition_get_active(disk,n)) ? '*' : ' ';
+
checkbox = 
newtCheckbox(0,textbox_height+label_height+2,PARTITION_DIALOG_MODIFY_PARTITION_ACTIVE_TEXT,active,0,&active);

label = 
newtLabel(0,textbox_height+1,PARTITION_DIALOG_MODIFY_PARTITION_NAME_TEXT);
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to