From 0bc4c0820fc5e00b1a50a7389daab5c876a32697 Mon Sep 17 00:00:00 2001 From: Henry Wilkes Date: Wed, 4 Mar 2020 09:59:33 +0000 Subject: [PATCH] asset: make proxy-target read only We should not be able to set this property. --- ges/ges-asset.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ges/ges-asset.c b/ges/ges-asset.c index 416f7c6565..cd1aa846cb 100644 --- a/ges/ges-asset.c +++ b/ges/ges-asset.c @@ -429,11 +429,6 @@ ges_asset_set_property (GObject * object, guint property_id, case PROP_PROXY: ges_asset_set_proxy (asset, g_value_get_object (value)); break; - case PROP_PROXY_TARGET: - /* FIXME: Need to remove self as a proxy from the previous target - * and only call the below when the new target is not NULL */ - ges_asset_set_proxy (g_value_get_object (value), asset); - break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); } @@ -520,7 +515,7 @@ ges_asset_class_init (GESAssetClass * klass) */ _properties[PROP_PROXY_TARGET] = g_param_spec_object ("proxy-target", "Proxy target", - "The target of a proxy asset.", GES_TYPE_ASSET, G_PARAM_READWRITE); + "The target of a proxy asset.", GES_TYPE_ASSET, G_PARAM_READABLE); g_object_class_install_properties (object_class, PROP_LAST, _properties);