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

commit 9e46d2a093765726d69ed2072d88e5e14013b6d4
Author: James Buren <[email protected]>
Date:   Tue Feb 19 00:36:33 2013 -0600

modify disk label text to be more symmetrical

diff --git a/new/src/ui_newt.c b/new/src/ui_newt.c
index c299c57..5e42374 100644
--- a/new/src/ui_newt.c
+++ b/new/src/ui_newt.c
@@ -922,7 +922,7 @@ extern bool ui_window_partition(struct device 
**devices,struct disk **disks)

size_to_string(size,10,device_get_size(device),false);

-    snprintf(text,NEWT_WIDTH+1,"%s %s %s 
label",device_get_path(device),size,(disk == 0) ? "unknown" : 
disk_get_type(disk));
+    snprintf(text,NEWT_WIDTH+1,"Disk %s: %s label 
(%s)",device_get_path(device),(disk == 0) ? "nil" : disk_get_type(disk),size);

action.device_number = i;

@@ -1045,7 +1045,7 @@ extern bool ui_window_partition(struct device 
**devices,struct disk **disks)

size_to_string(size,10,device_get_size(device),false);

-          snprintf(text,NEWT_WIDTH+1,"%s %s %s 
label",device_get_path(device),size,disk_get_type(disk));
+          snprintf(text,NEWT_WIDTH+1,"Disk %s: %s label 
(%s)",device_get_path(device),disk_get_type(disk),size);

newtListboxInsertEntry(listbox,text,(void *) key.data,(void *) key.data);
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to