| 1072 | } |
| 1073 | |
| 1074 | void |
| 1075 | ghb_settings_init(GhbValue *settings, const char *name) |
| 1076 | { |
| 1077 | GhbValue *internal; |
| 1078 | |
| 1079 | GhbValue *internalDict = ghb_resource_get("internal-defaults"); |
| 1080 | // Setting a ui widget will cause the corresponding setting |
| 1081 | // to be set, but it also triggers a callback that can |
| 1082 | // have the side effect of using other settings values |
| 1083 | // that have not yet been set. So set *all* settings first |
| 1084 | // then update the ui. |
| 1085 | internal = ghb_dict_get(internalDict, name); |
| 1086 | ghb_dict_copy(settings, internal); |
| 1087 | } |
| 1088 | |
| 1089 | void |
| 1090 | ghb_settings_close (void) |
no test coverage detected