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

Function subtitle_burned_toggled_cb

gtk/src/subtitlehandler.c:829–849  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

827}
828
829G_MODULE_EXPORT void
830subtitle_burned_toggled_cb (GtkWidget *widget, gpointer data)
831{
832 GhbValue *subsettings;
833 int index;
834 signal_user_data_t *ud = ghb_ud();
835
836 ghb_widget_to_setting(ud->settings, widget);
837 GhbValue *val = ghb_widget_value(widget);
838 subtitle_update_setting(val, "Burn", ud);
839 subsettings = subtitle_get_selected_settings(ud, &index);
840 if (subsettings != NULL)
841 {
842 if (ghb_dict_get_bool(subsettings, "Burn") &&
843 ghb_dict_get(subsettings, "Track") != NULL) // !foreign audio search
844 {
845 ghb_ui_update("SubtitleDefaultTrack", ghb_boolean_value(FALSE));
846 subtitle_exclusive_burn(ud, index);
847 }
848 }
849}
850
851G_MODULE_EXPORT void
852subtitle_default_toggled_cb (GtkWidget *widget, gpointer data)

Callers

nothing calls this directly

Calls 9

ghb_udFunction · 0.85
ghb_widget_to_settingFunction · 0.85
ghb_widget_valueFunction · 0.85
subtitle_update_settingFunction · 0.85
ghb_dict_get_boolFunction · 0.85
ghb_ui_updateFunction · 0.85
ghb_boolean_valueFunction · 0.85
subtitle_exclusive_burnFunction · 0.85

Tested by

no test coverage detected