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

commit 55bffce015a6f2e7644936ef7aa5f60451e4a000
Author: James Buren <[email protected]>
Date:   Tue Feb 19 02:44:59 2013 -0600

when creating a new partition, set the cursor place.

diff --git a/new/src/ui_newt.c b/new/src/ui_newt.c
index 341c0f5..7d721b7 100644
--- a/new/src/ui_newt.c
+++ b/new/src/ui_newt.c
@@ -1124,11 +1124,11 @@ extern bool ui_window_partition(struct device 
**devices,struct disk **disks)
snprintf(text,NEWT_WIDTH+1,"%2cPartition %3d: %7s type %8s (%s)",' 
',disk_partition_get_number(disk,partition),disk_partition_get_purpose(disk,partition),(disk_partition_get_active(disk,partition))
 ? "active" : "inactive",size);

newtListboxInsertEntry(listbox,text,(void *) key.data,(void *) action.data);
-
-            key.data = action.data;
}

newtListboxDeleteEntry(listbox,(void *) action.data);
+
+          newtListboxSetCurrentByKey(listbox,(void *) 
((disk_get_free_size(disk) > 0) ? action.data : key.data));
}
}
else if(action.delete)
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to