| 1053 | } |
| 1054 | |
| 1055 | void ghb_queue_progress_set_fraction (signal_user_data_t *ud, |
| 1056 | int index, gdouble frac) |
| 1057 | { |
| 1058 | GtkListBox * lb; |
| 1059 | GtkListBoxRow * row; |
| 1060 | |
| 1061 | int count = ghb_array_len(ud->queue); |
| 1062 | if (index < 0 || index >= count) |
| 1063 | { |
| 1064 | // invalid index |
| 1065 | return; |
| 1066 | } |
| 1067 | |
| 1068 | lb = GTK_LIST_BOX(ghb_builder_widget("queue_list")); |
| 1069 | row = gtk_list_box_get_row_at_index(lb, index); |
| 1070 | if (row == NULL) |
| 1071 | { |
| 1072 | return; |
| 1073 | } |
| 1074 | ghb_queue_row_set_progress(GHB_QUEUE_ROW(row), frac); |
| 1075 | } |
| 1076 | |
| 1077 | void ghb_queue_update_live_stats (signal_user_data_t * ud, int index, |
| 1078 | ghb_instance_status_t * status) |
no test coverage detected