| 5125 | } |
| 5126 | |
| 5127 | static void |
| 5128 | update_queue_labels(signal_user_data_t *ud) |
| 5129 | { |
| 5130 | GtkWidget *button; |
| 5131 | int pending; |
| 5132 | char *str; |
| 5133 | |
| 5134 | button = ghb_builder_widget("show_queue"); |
| 5135 | pending = queue_pending_count(ud->queue); |
| 5136 | |
| 5137 | if (pending > 0) |
| 5138 | { |
| 5139 | str = g_strdup_printf("%d", pending); |
| 5140 | ghb_button_set_indicator_label(GHB_BUTTON(button), str); |
| 5141 | g_free(str); |
| 5142 | } |
| 5143 | else |
| 5144 | { |
| 5145 | ghb_button_set_indicator_label(GHB_BUTTON(button), NULL); |
| 5146 | } |
| 5147 | } |
| 5148 | |
| 5149 | void |
| 5150 | ghb_hbfd(signal_user_data_t *ud, gboolean hbfd) |
no test coverage detected