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

commit db5f58a2b5ed30420002334f8b0adc61660c4e64
Author: James Buren <[email protected]>
Date:   Sun Feb 17 00:58:42 2013 -0600

when updating the UI for new partitions, the free
space should be appended after the new partition entry

diff --git a/src/ui_newt.c b/src/ui_newt.c
index 00b4531..863fe4d 100644
--- a/src/ui_newt.c
+++ b/src/ui_newt.c
@@ -1081,15 +1081,6 @@ extern bool ui_window_partition(struct device 
**devices,struct disk **disks)

if(ui_dialog_partition_new_partition(disk))
{
-          if(disk_get_free_size(disk) > 0)
-          {
-            size_to_string(size,10,disk_get_free_size(disk),false);
-
-            snprintf(text,NEWT_WIDTH+1,"free space %s",size);
-
-            newtListboxInsertEntry(listbox,text,(void *) key.data,(void *) 
key.data);
-          }
-
if(strcmp(disk_partition_get_purpose(disk,partition),"extended") != 0)
{
key.space = false;
@@ -1116,6 +1107,15 @@ extern bool ui_window_partition(struct device 
**devices,struct disk **disks)
{
snprintf(text,NEWT_WIDTH+1,"delete extended partition");
}
+
+          if(disk_get_free_size(disk) > 0)
+          {
+            size_to_string(size,10,disk_get_free_size(disk),false);
+
+            snprintf(text,NEWT_WIDTH+1,"free space %s",size);
+
+            newtListboxInsertEntry(listbox,text,(void *) key.data,(void *) 
key.data);
+          }

key.space = false;
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to