Changeset 3881 in MondoRescue for branches/3.3/mondo/src/common/newt-specific.c
- Timestamp:
- Mar 9, 2024, 3:31:21 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mondo/src/common/newt-specific.c
r3874 r3881 1225 1225 /** 1226 1226 * Ask the user which backup media type they would like to use. 1227 * The choices are @p none (exit to shell), @c cdr, @c dvd,1227 * The choices are @p none (exit to shell), @c optical, 1228 1228 * @c tape, @c cdstream, @c udev (only when @p g_text_mode is TRUE), @c netfs, 1229 1229 * and @c iso. … … 1240 1240 char *title_sz = NULL; 1241 1241 char *minimsg_sz = NULL; 1242 static t_bkptype possible_bkptypes[] = { none, cdr, dvd, tape, cdstream, udev, netfs, iso };1243 static char *possible_responses[] = { "none", " cdr", "dvd", "tape", "cdstream", "udev", "netfs", "iso", NULL };1242 static t_bkptype possible_bkptypes[] = { none, optical, tape, cdstream, udev, netfs, iso }; 1243 static char *possible_responses[] = { "none", "optical", "tape", "cdstream", "udev", "netfs", "iso", NULL }; 1244 1244 char *outstr = NULL; 1245 1245 char *instr = NULL; … … 1248 1248 1249 1249 newtComponent b1; 1250 newtComponent b2;1251 1250 newtComponent b3; 1252 1251 newtComponent b4; 1253 newtComponent b5;1254 1252 newtComponent b6; 1255 1253 newtComponent b7; … … 1288 1286 newtPushHelpLine(title_sz); 1289 1287 newtCenteredWindow(34, 17, minimsg_sz); 1290 b1 = newtButton(1, 1, " CD-Rdisks ");1288 b1 = newtButton(1, 1, "Optical disks "); 1291 1289 b3 = newtButton(1, 9, "Tape drive "); 1292 1290 b4 = newtButton(17, 5, "USB Key/Disk"); 1293 b5 = newtButton(1, 5, " DVD disks ");1294 1291 b6 = newtButton(17, 9, " Net mount "); 1295 1292 b7 = newtButton(1, 13, " Hard disk "); 1296 1293 b8 = newtButton(17, 13, " Exit "); 1297 1294 myForm = newtForm(NULL, NULL, 0); 1298 newtFormAddComponents(myForm, b1, b 5, b3, b7, b4, b6, b8, NULL);1295 newtFormAddComponents(myForm, b1, b3, b7, b4, b6, b8, NULL); 1299 1296 b_res = newtRunForm(myForm); 1300 1297 newtFormDestroy(myForm); 1301 1298 newtPopWindow(); 1302 1299 if (b_res == b1) { 1303 output = cdr;1300 output = optical; 1304 1301 } else if (b_res == b3) { 1305 1302 output = tape; 1306 1303 } else if (b_res == b4) { 1307 1304 output = usb; 1308 } else if (b_res == b5) {1309 output = dvd;1310 1305 } else if (b_res == b6) { 1311 1306 output = netfs;
Note:
See TracChangeset
for help on using the changeset viewer.