void *uid_test(t_menu_entry *menus, void *info) { static char *nick = "Serge"; if (info) { nick = fw_inputbox("Freewar", "Please enter your nick", nick); //fprintf(fd_log, "Got nick -> %s\n", nick); //fw_msgbox("Freewar", "Wesh wesh alors", MB_YESNOCANCEL); return (0); } return (0); }
char *asktowhere(char *dev) { while(1) { if(fw_inputbox(g_strdup_printf(_("Select mount point for %s"), dev), "You need to specify where you want the new partition mounted. " "For example, if you want to put it under /usr/local, then " "respond: /usr/local\n\nWhere would you like to mount this " "partition?", 0, 0, "", 0) == -1) return(NULL); if(!findmount(dialog_vars.input_result, 1)) break; } return(strdup(dialog_vars.input_result)); }