Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=7581ad4ee1742041eb6b8b0222bac59b7e380f8f
commit 7581ad4ee1742041eb6b8b0222bac59b7e380f8f Author: James Buren <[email protected]> Date: Sun Feb 17 15:15:25 2013 -0600 in disk section, replace resets with same method as last commit diff --git a/src/ui_newt.c b/src/ui_newt.c index a8ca249..f9828f0 100644 --- a/src/ui_newt.c +++ b/src/ui_newt.c @@ -1021,23 +1021,23 @@ extern bool ui_window_partition(struct device **devices,struct disk **disks) break; } - key.partition = false; + key.data = action.data; - key.partition_number = 0; + key.disk = false; key.space = true; newtListboxDeleteEntry(listbox,(void *) key.data); - key.space = false; + key.data = action.data; + + key.disk = false; key.delete = true; newtListboxDeleteEntry(listbox,(void *) key.data); - key.delete = false; - - key.disk = true; + key.data = action.data; size_to_string(size,10,device_get_size(device),false); @@ -1056,8 +1056,6 @@ extern bool ui_window_partition(struct device **devices,struct disk **disks) snprintf(text,NEWT_WIDTH+1,"free space %s",size); newtListboxInsertEntry(listbox,text,(void *) key.data,(void *) action.data); - - key.space = false; } } else if(action.partition) _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
