| 1021 | } |
| 1022 | |
| 1023 | void |
| 1024 | ghb_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 | |
| 1044 | void |
| 1045 | ghb_pref_set(GhbValue *settings, const gchar *key) |
no test coverage detected