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

Function ghb_audio_defaults_to_ui

gtk/src/audiohandler.c:2540–2572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2538}
2539
2540void ghb_audio_defaults_to_ui(signal_user_data_t *ud)
2541{
2542 GtkListBox *list_box;
2543 GhbValue *alist;
2544 int count, ii;
2545
2546 audio_def_lang_list_init(ud);
2547
2548 // Init the AudioList settings if necessary
2549 alist = ghb_dict_get_value(ud->settings, "AudioList");
2550 if (alist == NULL)
2551 {
2552 alist = ghb_array_new();
2553 ghb_dict_set(ud->settings, "AudioList", alist);
2554 }
2555
2556 // Empty the current list
2557 list_box = GTK_LIST_BOX(ghb_builder_widget("audio_list_default"));
2558 ghb_list_box_remove_all(list_box);
2559
2560 GtkWidget *widget;
2561 // Populate with new values
2562 count = ghb_array_len(alist);
2563 for (ii = 0; ii < count; ii++)
2564 {
2565 GhbValue *adict;
2566
2567 adict = ghb_array_get(alist, ii);
2568 widget = create_audio_settings_row(ud);
2569 gtk_list_box_insert(list_box, widget, -1);
2570 audio_def_update_widgets(widget, adict);
2571 }
2572}
2573
2574void ghb_init_audio_defaults_ui(signal_user_data_t *ud)
2575{

Callers 1

ghb_load_post_settingsFunction · 0.85

Calls 6

audio_def_lang_list_initFunction · 0.85
ghb_dict_get_valueFunction · 0.85
ghb_builder_widgetFunction · 0.85
ghb_list_box_remove_allFunction · 0.85
audio_def_update_widgetsFunction · 0.85

Tested by

no test coverage detected