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

commit e97f573f6133b6bd56b6707c8c27b7d1e669d674
Author: James Buren <[email protected]>
Date:   Wed Dec 5 06:24:36 2012 -0600

set initial partition name entry if the label is GPT

diff --git a/src/ui_newt.c b/src/ui_newt.c
index a69df28..c8c2ef8 100644
--- a/src/ui_newt.c
+++ b/src/ui_newt.c
@@ -397,8 +397,10 @@ static bool ui_dialog_partition_modify_partition(struct 
disk *disk,int n)
checkbox = 
newtCheckbox(0,textbox_height+label_height+2,PARTITION_DIALOG_MODIFY_PARTITION_ACTIVE_TEXT,active,0,&active);

label = 
newtLabel(0,textbox_height+1,PARTITION_DIALOG_MODIFY_PARTITION_NAME_TEXT);
+
+  name = (strcmp(disk_get_type(disk),"gpt") == 0) ? 
disk_partition_get_name(disk,n) : "";

-  entry = newtEntry(label_width+1,textbox_height+1,"",entry_width,&name,0);
+  entry = newtEntry(label_width+1,textbox_height+1,name,entry_width,&name,0);

listbox = newtListbox(0,textbox_height+1,listbox_height,NEWT_FLAG_SCROLL);
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to