| 462 | } |
| 463 | |
| 464 | int |
| 465 | ghb_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 | |
| 486 | int |
| 487 | ghb_ui_settings_update( |
no test coverage detected