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

Function ghb_ui_settings_update

gtk/src/settings.c:486–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484}
485
486int
487ghb_ui_settings_update(
488 signal_user_data_t *ud,
489 GhbValue *settings,
490 const gchar *name,
491 const GhbValue *value)
492{
493 GObject *object;
494
495 ghb_log_func_str(name);
496 if (name == NULL || value == NULL)
497 return 0;
498 object = ghb_builder_object(name);
499 if (object == NULL)
500 {
501 g_debug("Failed to find widget for key: %s", name);
502 return -1;
503 }
504 ghb_update_widget((GtkWidget*)object, value);
505 // Its possible the value hasn't changed. Since settings are only
506 // updated when the value changes, I'm initializing settings here as well.
507 ghb_widget_to_setting(settings, (GtkWidget*)object);
508 return 0;
509}

Callers 4

vcodec_changed_cbFunction · 0.85
ghb_settings_to_uiFunction · 0.85
hbfd_feature_changed_cbFunction · 0.85

Calls 3

ghb_builder_objectFunction · 0.85
ghb_update_widgetFunction · 0.85
ghb_widget_to_settingFunction · 0.85

Tested by

no test coverage detected