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

Function ghb_settings_to_ui

gtk/src/presets.c:549–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

547};
548
549void
550ghb_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
579static char*
580preset_get_fullname(hb_preset_index_t *path, const char * sep, gboolean escape)

Callers 2

_ghb_idle_ui_initFunction · 0.85
ghb_load_post_settingsFunction · 0.85

Calls 2

ghb_dict_get_valueFunction · 0.85
ghb_ui_settings_updateFunction · 0.85

Tested by

no test coverage detected