| 814 | } |
| 815 | |
| 816 | static void |
| 817 | queue_update_current_stats (signal_user_data_t * ud) |
| 818 | { |
| 819 | GtkListBox * lb; |
| 820 | GtkListBoxRow * row; |
| 821 | gint index; |
| 822 | GhbValue * queueDict; |
| 823 | |
| 824 | lb = GTK_LIST_BOX(ghb_builder_widget("queue_list")); |
| 825 | row = gtk_list_box_get_selected_row(lb); |
| 826 | if (row != NULL) |
| 827 | { |
| 828 | // There is a queue list row selected |
| 829 | index = gtk_list_box_row_get_index(row); |
| 830 | if (index < 0 || index >= ghb_array_len(ud->queue)) |
| 831 | { // Should never happen |
| 832 | return; |
| 833 | } |
| 834 | queueDict = ghb_array_get(ud->queue, index); |
| 835 | queue_update_stats(queueDict, ud); |
| 836 | } |
| 837 | } |
| 838 | |
| 839 | #define ACTIVITY_MAX_READ_SZ (1024*1024) |
| 840 | static void read_log (signal_user_data_t * ud, const char * log_path) |
no test coverage detected