MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / ghb_queue_row_set_status

Function ghb_queue_row_set_status

gtk/src/ghb-queue-row.c:255–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255void
256ghb_queue_row_set_status (GhbQueueRow *self, int status)
257{
258 g_return_if_fail(GHB_IS_QUEUE_ROW(self));
259
260 self->status = status;
261 const char *icon_name, *accessible_name;
262 gboolean show_progress_bar = FALSE;
263 switch (status)
264 {
265 case GHB_QUEUE_RUNNING:
266 icon_name = "hb-running-symbolic";
267 accessible_name = _("Running Queue Item");
268 show_progress_bar = TRUE;
269 break;
270 case GHB_QUEUE_PENDING:
271 icon_name = "hb-ready-symbolic";
272 accessible_name = _("Pending Queue Item");
273 break;
274 case GHB_QUEUE_FAIL:
275 icon_name = "hb-error";
276 accessible_name = _("Failed Queue Item");
277 break;
278 case GHB_QUEUE_CANCELED:
279 icon_name = "hb-cancelled";
280 accessible_name = _("Cancelled Queue Item");
281 break;
282 case GHB_QUEUE_DONE:
283 icon_name = "hb-complete";
284 accessible_name = _("Completed Queue Item");
285 break;
286 default:
287 icon_name = "hb-ready-symbolic";
288 accessible_name = _("Pending Queue Item");
289 break;
290 }
291 gtk_image_set_from_icon_name(self->status_icon, icon_name);
292 gtk_accessible_update_property(GTK_ACCESSIBLE(self->status_icon),
293 GTK_ACCESSIBLE_PROPERTY_LABEL, accessible_name, -1);
294 gtk_widget_set_visible(GTK_WIDGET(self->encode_progress_bar), show_progress_bar);
295}
296
297int
298ghb_queue_row_get_status (GhbQueueRow *self)

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected