| 547 | }; |
| 548 | |
| 549 | void |
| 550 | ghb_settings_to_ui(signal_user_data_t *ud, GhbValue *dict) |
| 551 | { |
| 552 | GhbDictIter iter; |
| 553 | const gchar *key; |
| 554 | GhbValue *gval; |
| 555 | int ii; |
| 556 | GhbValue *tmp = ghb_value_dup(dict); |
| 557 | |
| 558 | if (dict == NULL) |
| 559 | return; |
| 560 | |
| 561 | for (ii = 0; widget_priority_list[ii] != NULL; ii++) |
| 562 | { |
| 563 | key = widget_priority_list[ii]; |
| 564 | gval = ghb_dict_get_value(tmp, key); |
| 565 | if (gval != NULL) |
| 566 | ghb_ui_settings_update(ud, dict, key, gval); |
| 567 | } |
| 568 | |
| 569 | iter = ghb_dict_iter_init(tmp); |
| 570 | // middle (void*) cast prevents gcc warning "dereferencing type-punned |
| 571 | // pointer will break strict-aliasing rules" |
| 572 | while (ghb_dict_iter_next(tmp, &iter, &key, &gval)) |
| 573 | { |
| 574 | ghb_ui_settings_update(ud, dict, key, gval); |
| 575 | } |
| 576 | ghb_value_free(&tmp); |
| 577 | } |
| 578 | |
| 579 | static char* |
| 580 | preset_get_fullname(hb_preset_index_t *path, const char * sep, gboolean escape) |
no test coverage detected