| 1424 | } |
| 1425 | |
| 1426 | static void |
| 1427 | audio_add_response (GtkWidget *dialog, int response, GhbValue *backup) |
| 1428 | { |
| 1429 | signal_user_data_t *ud = ghb_ud(); |
| 1430 | g_signal_handlers_disconnect_by_data(dialog, backup); |
| 1431 | gtk_widget_set_visible(dialog, FALSE); |
| 1432 | if (response == GTK_RESPONSE_OK) |
| 1433 | { |
| 1434 | ghb_value_free(&backup); |
| 1435 | } |
| 1436 | else |
| 1437 | { |
| 1438 | GhbValue *audio_dict = ghb_get_job_audio_settings(ud->settings); |
| 1439 | ghb_dict_set(audio_dict, "AudioList", backup); |
| 1440 | GhbValue *asettings = audio_get_selected_settings(ud, NULL); |
| 1441 | if (asettings != NULL) |
| 1442 | { |
| 1443 | audio_update_dialog_widgets(ud, asettings); |
| 1444 | } |
| 1445 | audio_refresh_list_ui(ud); |
| 1446 | ghb_update_summary_info(ud); |
| 1447 | } |
| 1448 | } |
| 1449 | |
| 1450 | G_MODULE_EXPORT void |
| 1451 | audio_add_all_cb (GSimpleAction *action, GVariant *param, gpointer data) |
nothing calls this directly
no test coverage detected