| 1484 | } |
| 1485 | |
| 1486 | static void |
| 1487 | start_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 | |
| 1509 | gboolean |
| 1510 | ghb_idle_scan(signal_user_data_t *ud) |
no test coverage detected