|
Lines 218-224
Link Here
|
| 218 |
dialog_msgbox(NULL, errstr, -1, -1, 0); |
218 |
dialog_msgbox(NULL, errstr, -1, -1, 0); |
| 219 |
} |
219 |
} |
| 220 |
|
220 |
|
| 221 |
/* Put up a message in a popup yes/no box and return 1 for YES, 0 for NO */ |
221 |
/* Put up a message in a popup yes/no box and return 0 for YES, 1 for NO */ |
| 222 |
int |
222 |
int |
| 223 |
msgYesNo(char *fmt, ...) |
223 |
msgYesNo(char *fmt, ...) |
| 224 |
{ |
224 |
{ |
|
Lines 238-250
Link Here
|
| 238 |
msgInfo(NULL); |
238 |
msgInfo(NULL); |
| 239 |
} |
239 |
} |
| 240 |
if (variable_get(VAR_NONINTERACTIVE)) |
240 |
if (variable_get(VAR_NONINTERACTIVE)) |
| 241 |
return 1; /* If non-interactive, return YES all the time */ |
241 |
return 0; /* If non-interactive, return YES all the time */ |
| 242 |
ret = dialog_yesno("User Confirmation Requested", errstr, -1, -1); |
242 |
ret = dialog_yesno("User Confirmation Requested", errstr, -1, -1); |
| 243 |
restorescr(w); |
243 |
restorescr(w); |
| 244 |
return ret; |
244 |
return ret; |
| 245 |
} |
245 |
} |
| 246 |
|
246 |
|
| 247 |
/* Put up a message in a popup no/yes box and return 1 for YES, 0 for NO */ |
247 |
/* Put up a message in a popup no/yes box and return 0 for YES, 1 for NO */ |
| 248 |
int |
248 |
int |
| 249 |
msgNoYes(char *fmt, ...) |
249 |
msgNoYes(char *fmt, ...) |
| 250 |
{ |
250 |
{ |
|
Lines 264-270
Link Here
|
| 264 |
msgInfo(NULL); |
264 |
msgInfo(NULL); |
| 265 |
} |
265 |
} |
| 266 |
if (variable_get(VAR_NONINTERACTIVE)) |
266 |
if (variable_get(VAR_NONINTERACTIVE)) |
| 267 |
return 0; /* If non-interactive, return NO all the time */ |
267 |
return 1; /* If non-interactive, return NO all the time */ |
| 268 |
ret = dialog_noyes("User Confirmation Requested", errstr, -1, -1); |
268 |
ret = dialog_noyes("User Confirmation Requested", errstr, -1, -1); |
| 269 |
restorescr(w); |
269 |
restorescr(w); |
| 270 |
return ret; |
270 |
return ret; |