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

Function _ghb_idle_ui_init

gtk/src/application.c:541–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

539}
540
541static 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
576extern G_MODULE_EXPORT void preview_leave_cb(GtkEventControllerMotion * econ,
577 GdkCrossingMode cross, GdkNotifyType notify,

Callers

nothing calls this directly

Calls 7

ghb_settings_to_uiFunction · 0.85
ghb_set_scan_sourceFunction · 0.85
ghb_dict_get_stringFunction · 0.85
ghb_select_presetFunction · 0.85
ghb_bind_dependenciesFunction · 0.85

Tested by

no test coverage detected