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

Function subtitle_default_toggled_cb

gtk/src/subtitlehandler.c:851–870  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

849}
850
851G_MODULE_EXPORT void
852subtitle_default_toggled_cb (GtkWidget *widget, gpointer data)
853{
854 GhbValue *subsettings;
855 int index;
856 signal_user_data_t *ud = ghb_ud();
857
858 ghb_widget_to_setting(ud->settings, widget);
859 GhbValue *val = ghb_widget_value(widget);
860 subtitle_update_setting(val, "Default", ud);
861 subsettings = subtitle_get_selected_settings(ud, &index);
862 if (subsettings != NULL)
863 {
864 if (ghb_dict_get_bool(subsettings, "Default"))
865 {
866 ghb_ui_update("SubtitleBurned", ghb_boolean_value(FALSE));
867 subtitle_exclusive_default(ud, index);
868 }
869 }
870}
871
872G_MODULE_EXPORT void
873subtitle_import_radio_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

Tested by

no test coverage detected