| 1346 | } |
| 1347 | |
| 1348 | static void |
| 1349 | save_queue_file_cb (GtkFileChooser *chooser, gint response, |
| 1350 | signal_user_data_t *ud) |
| 1351 | { |
| 1352 | if (response == GTK_RESPONSE_ACCEPT) |
| 1353 | { |
| 1354 | char *filename = ghb_file_chooser_get_filename(chooser); |
| 1355 | |
| 1356 | int ii, count; |
| 1357 | GhbValue *queue = ghb_value_dup(ud->queue); |
| 1358 | count = ghb_array_len(queue); |
| 1359 | for (ii = 0; ii < count; ii++) |
| 1360 | { |
| 1361 | GhbValue *queueDict, *uiDict; |
| 1362 | |
| 1363 | queueDict = ghb_array_get(queue, ii); |
| 1364 | uiDict = ghb_dict_get(queueDict, "uiSettings"); |
| 1365 | if (uiDict == NULL) |
| 1366 | continue; |
| 1367 | ghb_dict_set_int(uiDict, "job_status", GHB_QUEUE_PENDING); |
| 1368 | } |
| 1369 | |
| 1370 | ghb_write_settings_file(filename, queue); |
| 1371 | g_free (filename); |
| 1372 | ghb_value_free(&queue); |
| 1373 | } |
| 1374 | ghb_file_chooser_destroy(chooser); |
| 1375 | } |
| 1376 | |
| 1377 | static void save_queue_file (signal_user_data_t *ud) |
| 1378 | { |
nothing calls this directly
no test coverage detected