| 1031 | } |
| 1032 | |
| 1033 | void |
| 1034 | ghb_queue_item_set_status (signal_user_data_t *ud, int index, int status) |
| 1035 | { |
| 1036 | GtkListBox * lb; |
| 1037 | GtkListBoxRow * row; |
| 1038 | |
| 1039 | int count = ghb_array_len(ud->queue); |
| 1040 | if (index < 0 || index >= count) |
| 1041 | { |
| 1042 | // invalid index |
| 1043 | return; |
| 1044 | } |
| 1045 | |
| 1046 | lb = GTK_LIST_BOX(ghb_builder_widget("queue_list")); |
| 1047 | row = gtk_list_box_get_row_at_index(lb, index); |
| 1048 | if (row == NULL) |
| 1049 | { |
| 1050 | return; |
| 1051 | } |
| 1052 | ghb_queue_row_set_status(GHB_QUEUE_ROW(row), status); |
| 1053 | } |
| 1054 | |
| 1055 | void ghb_queue_progress_set_fraction (signal_user_data_t *ud, |
| 1056 | int index, gdouble frac) |
no test coverage detected