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

Function ghb_pref_set

gtk/src/presets.c:1044–1062  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1042}
1043
1044void
1045ghb_pref_set(GhbValue *settings, const gchar *key)
1046{
1047 const GhbValue *value, *value2;
1048
1049 value = ghb_dict_get_value(settings, key);
1050 if (value != NULL)
1051 {
1052 GhbValue *dict;
1053 dict = ghb_dict_get(prefsDict, "Preferences");
1054 if (dict == NULL) return;
1055 value2 = ghb_dict_get(dict, key);
1056 if (ghb_value_cmp(value, value2) != 0)
1057 {
1058 ghb_dict_set(dict, key, ghb_value_dup(value));
1059 prefs_modified = TRUE;
1060 }
1061 }
1062}
1063
1064void
1065ghb_prefs_store(void)

Callers 12

activity_font_changed_cbFunction · 0.85
when_complete_changed_cbFunction · 0.85
pref_changed_cbFunction · 0.85
use_m4v_changed_cbFunction · 0.85
temp_dir_changed_cbFunction · 0.85
tweaks_changed_cbFunction · 0.85
show_preview_changed_cbFunction · 0.85
hbfd_feature_changed_cbFunction · 0.85
hb_window_save_size_cbFunction · 0.85

Calls 2

ghb_dict_get_valueFunction · 0.85
ghb_value_cmpFunction · 0.85

Tested by

no test coverage detected