| 1300 | } |
| 1301 | |
| 1302 | static void |
| 1303 | subtitle_add_fas_response (GtkWidget *dialog, int response, GhbValue *backup) |
| 1304 | { |
| 1305 | signal_user_data_t *ud = ghb_ud(); |
| 1306 | g_signal_handlers_disconnect_by_data(dialog, backup); |
| 1307 | gtk_widget_set_visible(dialog, FALSE); |
| 1308 | if (response == GTK_RESPONSE_OK) |
| 1309 | { |
| 1310 | // Disable FAS button |
| 1311 | GSimpleAction *action = G_SIMPLE_ACTION(GHB_ACTION("subtitle-add-fas")); |
| 1312 | g_simple_action_set_enabled(action, 0); |
| 1313 | |
| 1314 | ghb_value_free(&backup); |
| 1315 | } |
| 1316 | else |
| 1317 | { |
| 1318 | ghb_clear_subtitle_selection(); |
| 1319 | ghb_dict_set(ghb_get_job_settings(ud->settings), |
| 1320 | "Subtitle", backup); |
| 1321 | subtitle_refresh_list_ui(ud); |
| 1322 | } |
| 1323 | ghb_update_summary_info(ud); |
| 1324 | } |
| 1325 | |
| 1326 | G_MODULE_EXPORT void |
| 1327 | subtitle_add_all_cb (GSimpleAction *action, GVariant *param, gpointer data) |
nothing calls this directly
no test coverage detected