| 898 | } |
| 899 | |
| 900 | static void |
| 901 | audio_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 | |
| 933 | void |
| 934 | ghb_audio_list_refresh_all(signal_user_data_t *ud) |
no test coverage detected