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

Function audio_refresh_list_ui

gtk/src/audiohandler.c:900–931  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

898}
899
900static void
901audio_refresh_list_ui(signal_user_data_t *ud)
902{
903 GhbValue *audio_list;
904 GhbValue *asettings;
905 gint ii, count, tm_count;
906 GtkTreeView *tv;
907 GtkTreeModel *tm;
908 GtkTreeIter ti;
909
910 tv = GTK_TREE_VIEW(ghb_builder_widget("audio_list_view"));
911 tm = gtk_tree_view_get_model(tv);
912
913 tm_count = gtk_tree_model_iter_n_children(tm, NULL);
914
915 audio_list = ghb_get_job_audio_list(ud->settings);
916 count = ghb_array_len(audio_list);
917 if (count != tm_count)
918 {
919 clear_audio_list_ui();
920 for (ii = 0; ii < count; ii++)
921 {
922 gtk_tree_store_append(GTK_TREE_STORE(tm), &ti, NULL);
923 }
924 }
925 for (ii = 0; ii < count; ii++)
926 {
927 gtk_tree_model_iter_nth_child(tm, &ti, NULL, ii);
928 asettings = ghb_array_get(audio_list, ii);
929 audio_refresh_list_row_ui(tm, &ti, ud, asettings);
930 }
931}
932
933void
934ghb_audio_list_refresh_all(signal_user_data_t *ud)

Callers 5

audio_add_responseFunction · 0.85
audio_add_all_cbFunction · 0.85
audio_edit_responseFunction · 0.85
audio_reset_cbFunction · 0.85

Calls 4

ghb_builder_widgetFunction · 0.85
ghb_get_job_audio_listFunction · 0.85
clear_audio_list_uiFunction · 0.85

Tested by

no test coverage detected