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

Function ghb_widget_to_setting

gtk/src/settings.c:271–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271void
272ghb_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
293void
294ghb_update_widget(GtkWidget *widget, const GhbValue *value)

Calls 2

ghb_get_setting_keyFunction · 0.85
ghb_widget_valueFunction · 0.85

Tested by

no test coverage detected