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

Function ghb_settings_init

gtk/src/presets.c:1074–1087  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1072}
1073
1074void
1075ghb_settings_init(GhbValue *settings, const char *name)
1076{
1077 GhbValue *internal;
1078
1079 GhbValue *internalDict = ghb_resource_get("internal-defaults");
1080 // Setting a ui widget will cause the corresponding setting
1081 // to be set, but it also triggers a callback that can
1082 // have the side effect of using other settings values
1083 // that have not yet been set. So set *all* settings first
1084 // then update the ui.
1085 internal = ghb_dict_get(internalDict, name);
1086 ghb_dict_copy(settings, internal);
1087}
1088
1089void
1090ghb_settings_close (void)

Callers 2

ghb_application_activateFunction · 0.85
ghb_preset_to_settingsFunction · 0.85

Calls 2

ghb_resource_getFunction · 0.85
ghb_dict_copyFunction · 0.85

Tested by

no test coverage detected