Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=7a02614292b61fc0e23c0af830597a1c74f289f1
commit 7a02614292b61fc0e23c0af830597a1c74f289f1 Author: James Buren <[email protected]> Date: Wed Dec 5 02:30:48 2012 -0600 fill the contents of the listbox in modify partition UI diff --git a/src/ui_newt.c b/src/ui_newt.c index baa4d35..d8ef9cc 100644 --- a/src/ui_newt.c +++ b/src/ui_newt.c @@ -341,6 +341,18 @@ static bool ui_dialog_partition_modify_partition(struct disk *disk,int n) bool modified = false; char active = ' '; const char *name = 0; + int i = 0; + static const char *purposes[] = + { + "data", + "swap", + "raid", + "lvm", + "efi", + "bios", + "unknown", + 0 + }; if(!get_text_screen_size(PARTITION_DIALOG_MODIFY_PARTITION_TEXT,&textbox_width,&textbox_height)) return false; @@ -389,6 +401,11 @@ static bool ui_dialog_partition_modify_partition(struct disk *disk,int n) newtListboxSetWidth(listbox,listbox_width); + for( i = 0 ; purposes[i] != 0 ; ++i ) + { + newtListboxAppendEntry(listbox,purposes[i],purposes[i]); + } + newtListboxSetCurrent(listbox,0); form = newtForm(0,0,NEWT_FLAG_NOF12); _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
