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

Function ghb_pref_save

gtk/src/presets.c:1023–1042  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1021}
1022
1023void
1024ghb_pref_save(GhbValue *settings, const gchar *key)
1025{
1026 const GhbValue *value, *value2;
1027
1028 value = ghb_dict_get_value(settings, key);
1029 if (value != NULL)
1030 {
1031 GhbValue *dict;
1032 dict = ghb_dict_get(prefsDict, "Preferences");
1033 if (dict == NULL) return;
1034 value2 = ghb_dict_get(dict, key);
1035 if (ghb_value_cmp(value, value2) != 0)
1036 {
1037 ghb_dict_set(dict, key, ghb_value_dup(value));
1038 store_prefs();
1039 prefs_modified = FALSE;
1040 }
1041 }
1042}
1043
1044void
1045ghb_pref_set(GhbValue *settings, const gchar *key)

Callers 11

import_file_changed_cbFunction · 0.85
video_file_drop_receivedFunction · 0.85
source_dialog_start_scanFunction · 0.85
dvd_source_activate_cbFunction · 0.85
hbfd_action_cbFunction · 0.85
chapter_list_exportFunction · 0.85

Calls 3

ghb_dict_get_valueFunction · 0.85
ghb_value_cmpFunction · 0.85
store_prefsFunction · 0.85

Tested by

no test coverage detected