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

commit 366200606601bf53c64301a898e09fdc0201210e
Author: James Buren <[email protected]>
Date:   Sun Feb 17 01:21:31 2013 -0600

now reinstate the free space update code in its new place

diff --git a/src/ui_newt.c b/src/ui_newt.c
index b68deac..94dc33b 100644
--- a/src/ui_newt.c
+++ b/src/ui_newt.c
@@ -1097,6 +1097,15 @@ extern bool ui_window_partition(struct device 
**devices,struct disk **disks)
key.delete = false;

key.space = true;
+
+          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 *) 
action.data);
+          }
#if 0
if(strcmp(disk_partition_get_purpose(disk,partition),"extended") != 0)
{
@@ -1118,15 +1127,6 @@ extern bool ui_window_partition(struct device 
**devices,struct disk **disks)

key.space = true;
}
-
-          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);
-          }

newtListboxDeleteEntry(listbox,(void *) action.data);
#endif
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to