| 1042 | } |
| 1043 | |
| 1044 | void |
| 1045 | ghb_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 | |
| 1064 | void |
| 1065 | ghb_prefs_store(void) |
no test coverage detected