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

Function ghb_queue_progress_set_fraction

gtk/src/queuehandler.c:1055–1075  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1053}
1054
1055void 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
1077void ghb_queue_update_live_stats (signal_user_data_t * ud, int index,
1078 ghb_instance_status_t * status)

Callers 1

ghb_backend_eventsFunction · 0.85

Calls 2

ghb_builder_widgetFunction · 0.85

Tested by

no test coverage detected