void rut_prop_inspector_reload_property (RutPropInspector *inspector) { if (inspector->target_prop) { CoglBool old_reloading = inspector->reloading_property; inspector->reloading_property = TRUE; if (inspector->widget_prop) { if (inspector->target_prop->spec->type != inspector->widget_prop->spec->type) { rut_property_cast_scalar_value (&inspector->context->property_ctx, inspector->widget_prop, inspector->target_prop); } else rut_property_copy_value (&inspector->context->property_ctx, inspector->widget_prop, inspector->target_prop); } inspector->reloading_property = old_reloading; } }
static void _rut_property_copy_binding_cb (RutProperty *target_property, void *user_data) { RutPropertyContext *context = user_data; RutProperty *source_property = rut_property_get_first_source (target_property); rut_property_copy_value (context, target_property, source_property); }
static void copy_property_cb (RutProperty *property, void *user_data) { CopyPropertiesState *state = user_data; RutObject *dst = state->dst; RutProperty *dst_property = rut_introspectable_lookup_property (dst, property->spec->name); g_return_if_fail (dst_property != NULL); rut_property_copy_value (state->property_ctx, dst_property, property); }