| 269 | } |
| 270 | |
| 271 | void |
| 272 | ghb_widget_to_setting(GhbValue *settings, GtkWidget *widget) |
| 273 | { |
| 274 | const gchar *key = NULL; |
| 275 | GhbValue *value; |
| 276 | |
| 277 | if (widget == NULL) return; |
| 278 | ghb_log_func(); |
| 279 | // Find corresponding setting |
| 280 | key = ghb_get_setting_key(widget); |
| 281 | if (key == NULL) return; |
| 282 | value = ghb_widget_value(widget); |
| 283 | if (value != NULL) |
| 284 | { |
| 285 | ghb_dict_set(settings, key, value); |
| 286 | } |
| 287 | else |
| 288 | { |
| 289 | g_debug("No value found for %s", key); |
| 290 | } |
| 291 | } |
| 292 | |
| 293 | void |
| 294 | ghb_update_widget(GtkWidget *widget, const GhbValue *value) |
no test coverage detected