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

Function start_scan_list

gtk/src/callbacks.c:1486–1507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1484}
1485
1486static void
1487start_scan_list (signal_user_data_t *ud, GListModel *files, int title_id, int preview_count)
1488{
1489 GtkWidget *widget;
1490 ghb_status_t status;
1491
1492 ghb_get_status(&status);
1493 if (status.scan.state != GHB_STATE_IDLE)
1494 return;
1495
1496 widget = ghb_builder_widget("sourcetoolbutton");
1497 ghb_button_set_icon_name(GHB_BUTTON(widget), "hb-stop-small-symbolic");
1498 ghb_button_set_label(GHB_BUTTON(widget), _("Stop Scan"));
1499 gtk_widget_set_tooltip_text(widget, _("Stop Scan"));
1500 widget = ghb_builder_widget("sourcetoolmenubutton");
1501 gtk_widget_set_sensitive(widget, false);
1502 gboolean limit_max_duration = ghb_dict_get_bool(ud->prefs, "LimitMaxDuration");
1503 ghb_backend_scan_list(files, title_id, preview_count,
1504 90000L * ghb_dict_get_int(ud->prefs, "MinTitleDuration"),
1505 limit_max_duration ? 90000L * ghb_dict_get_int(ud->prefs, "MaxTitleDuration") : 0,
1506 ghb_dict_get_bool(ud->prefs, "KeepDuplicateTitles"));
1507}
1508
1509gboolean
1510ghb_idle_scan(signal_user_data_t *ud)

Callers 1

ghb_do_scan_listFunction · 0.85

Calls 7

ghb_get_statusFunction · 0.85
ghb_builder_widgetFunction · 0.85
ghb_button_set_icon_nameFunction · 0.85
ghb_button_set_labelFunction · 0.85
ghb_dict_get_boolFunction · 0.85
ghb_backend_scan_listFunction · 0.85
ghb_dict_get_intFunction · 0.85

Tested by

no test coverage detected