| 1516 | } |
| 1517 | |
| 1518 | static void |
| 1519 | audio_edit_response (GtkWidget *dialog, int response, GhbValue *backup) |
| 1520 | { |
| 1521 | signal_user_data_t *ud = ghb_ud(); |
| 1522 | g_signal_handlers_disconnect_by_data(dialog, backup); |
| 1523 | gtk_widget_set_visible(dialog, FALSE); |
| 1524 | if (response != GTK_RESPONSE_OK) |
| 1525 | { |
| 1526 | GhbValue *audio_dict = ghb_get_job_audio_settings(ud->settings); |
| 1527 | ghb_dict_set(audio_dict, "AudioList", backup); |
| 1528 | GhbValue *asettings = audio_get_selected_settings(ud, NULL); |
| 1529 | if (asettings != NULL) |
| 1530 | { |
| 1531 | audio_update_dialog_widgets(ud, asettings); |
| 1532 | } |
| 1533 | audio_refresh_list_ui(ud); |
| 1534 | } |
| 1535 | else |
| 1536 | { |
| 1537 | ghb_value_free(&backup); |
| 1538 | } |
| 1539 | } |
| 1540 | |
| 1541 | G_MODULE_EXPORT void |
| 1542 | audio_remove_cb (GSimpleAction *action, GVariant *param, gpointer data) |
nothing calls this directly
no test coverage detected