Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=f4523405bf0225ac7d63eea02a97b78768331d22
commit f4523405bf0225ac7d63eea02a97b78768331d22 Author: James Buren <[email protected]> Date: Wed Oct 24 21:14:19 2012 -0500 after the UI for the config window exits, update the listbox label text if the config is initialized diff --git a/src/ui_newt.c b/src/ui_newt.c index 9d58094..8e1266a 100644 --- a/src/ui_newt.c +++ b/src/ui_newt.c @@ -461,6 +461,7 @@ extern bool ui_window_format(struct format **targets) newtComponent next = 0; newtComponent listbox = 0; struct format **p = 0; + char text[NEWT_WIDTH+1] = {0}; newtComponent form = 0; struct newtExitStruct es = {0}; @@ -500,9 +501,8 @@ extern bool ui_window_format(struct format **targets) for( p = targets ; *p != 0 ; ++p ) { struct format *target = *p; - char text[NEWT_WIDTH + 1] = {0}; - snprintf(text,NEWT_WIDTH,"%11s %s %s",target->devicepath,target->size,target->filesystem); + snprintf(text,NEWT_WIDTH+1,"%11s %s %8s",target->devicepath,target->size,target->filesystem); newtListboxAppendEntry(listbox,text,target); } @@ -523,6 +523,15 @@ extern bool ui_window_format(struct format **targets) ui_dialog_format(targets,target); + if(target->newfilesystem != 0 && target->options != 0 && target->mountpath != 0) + { + snprintf(text,NEWT_WIDTH+1,"%11s %s %8s %5s",target->devicepath,target->size,target->newfilesystem,target->mountpath); + + newtListboxInsertEntry(listbox,text,target,target); + + newtListboxDeleteEntry(listbox,target); + } + continue; } else if(es.reason == NEWT_EXIT_COMPONENT && es.u.co == next) _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
