MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / subtitle_add_fas_response

Function subtitle_add_fas_response

gtk/src/subtitlehandler.c:1302–1324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1300}
1301
1302static void
1303subtitle_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
1326G_MODULE_EXPORT void
1327subtitle_add_all_cb (GSimpleAction *action, GVariant *param, gpointer data)

Callers

nothing calls this directly

Calls 5

ghb_udFunction · 0.85
ghb_get_job_settingsFunction · 0.85
subtitle_refresh_list_uiFunction · 0.85
ghb_update_summary_infoFunction · 0.85

Tested by

no test coverage detected