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

Function ghb_ui_update

gtk/src/settings.c:464–484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462}
463
464int
465ghb_ui_update (const gchar *name, const GhbValue *value)
466{
467 GObject *object;
468 signal_user_data_t *ud = ghb_ud();
469
470 ghb_log_func_str(name);
471 if (name == NULL || value == NULL)
472 return 0;
473 object = ghb_builder_object(name);
474 if (object == NULL)
475 {
476 g_debug("Failed to find widget for key: %s", name);
477 return -1;
478 }
479 ghb_update_widget((GtkWidget*)object, value);
480 // Its possible the value hasn't changed. Since settings are only
481 // updated when the value changes, I'm initializing settings here as well.
482 ghb_widget_to_setting(ud->settings, (GtkWidget*)object);
483 return 0;
484}
485
486int
487ghb_ui_settings_update(

Callers 15

io_redirectFunction · 0.85
ghb_set_scale_settingsFunction · 0.85
vcodec_changed_cbFunction · 0.85
framerate_changed_cbFunction · 0.85
preset_rename_action_cbFunction · 0.85
preset_save_as_action_cbFunction · 0.85
preset_save_action_cbFunction · 0.85
ghb_set_destinationFunction · 0.85

Calls 4

ghb_udFunction · 0.85
ghb_builder_objectFunction · 0.85
ghb_update_widgetFunction · 0.85
ghb_widget_to_settingFunction · 0.85

Tested by

no test coverage detected