| 539 | } |
| 540 | |
| 541 | static gboolean |
| 542 | _ghb_idle_ui_init (signal_user_data_t *ud) |
| 543 | { |
| 544 | ghb_settings_to_ui(ud, ud->prefs); |
| 545 | // Note that ghb_settings_to_ui(ud->settings) happens when initial |
| 546 | // empty title is initialized. |
| 547 | |
| 548 | // Init settings that are dependent on command line args |
| 549 | if (dvd_device != NULL) |
| 550 | { |
| 551 | // Source overridden from command line option |
| 552 | ghb_set_scan_source(dvd_device); |
| 553 | g_idle_add((GSourceFunc)ghb_idle_scan, ud); |
| 554 | } |
| 555 | else |
| 556 | { |
| 557 | const char *source = ghb_dict_get_string(ud->prefs, "default_source"); |
| 558 | ghb_set_scan_source(source); |
| 559 | } |
| 560 | |
| 561 | if (arg_preset != NULL) |
| 562 | { |
| 563 | ghb_select_preset(ud, arg_preset, HB_PRESET_TYPE_ALL); |
| 564 | } |
| 565 | else |
| 566 | { |
| 567 | ghb_select_default_preset(ud); |
| 568 | } |
| 569 | |
| 570 | ghb_bind_dependencies(); |
| 571 | ghb_check_send_to_available(); |
| 572 | |
| 573 | return FALSE; |
| 574 | } |
| 575 | |
| 576 | extern G_MODULE_EXPORT void preview_leave_cb(GtkEventControllerMotion * econ, |
| 577 | GdkCrossingMode cross, GdkNotifyType notify, |
nothing calls this directly
no test coverage detected