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

Function ghb_prefs_to_settings

gtk/src/presets.c:1182–1198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1180}
1181
1182void
1183ghb_prefs_to_settings(GhbValue *settings)
1184{
1185 // Initialize the ui from presets file.
1186 GhbValue *dict;
1187
1188 if (prefsDict == NULL)
1189 return;
1190
1191 // Setting a ui widget will cause the corresponding setting
1192 // to be set, but it also triggers a callback that can
1193 // have the side effect of using other settings values
1194 // that have not yet been set. So set *all* settings first
1195 // then update the ui.
1196 dict = ghb_dict_get(prefsDict, "Preferences");
1197 ghb_dict_copy(settings, dict);
1198}
1199
1200static hb_preset_index_t *
1201get_selected_path(signal_user_data_t *ud)

Callers 1

ghb_application_activateFunction · 0.85

Calls 1

ghb_dict_copyFunction · 0.85

Tested by

no test coverage detected