diff options
author | Debarshi Ray <debarshir@gnome.org> | 2015-06-10 13:52:39 +0200 |
---|---|---|
committer | Debarshi Ray <debarshir@gnome.org> | 2015-06-12 13:31:26 +0200 |
commit | 19e91a0bfae358caf04b1522cc01ce64347caef7 (patch) | |
tree | 4c45672a7fc7d723b67aba79fcc994308e25a691 /gdata/gdata-access-rule.c | |
parent | 360db0c60127c7bbd4dd26f2ab83b21a138f68ce (diff) | |
download | libgdata-19e91a0bfae358caf04b1522cc01ce64347caef7.tar.gz |
core: Read-only properties are not going to be set via the public API
https://bugzilla.gnome.org/show_bug.cgi?id=684920
Diffstat (limited to 'gdata/gdata-access-rule.c')
-rw-r--r-- | gdata/gdata-access-rule.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdata/gdata-access-rule.c b/gdata/gdata-access-rule.c index e75aa085..cc20d255 100644 --- a/gdata/gdata-access-rule.c +++ b/gdata/gdata-access-rule.c @@ -341,10 +341,7 @@ gdata_access_rule_set_property (GObject *object, guint property_id, const GValue /* Never set an ETag (note that this doesn't stop it being set in GDataEntry due to XML parsing) */ break; case PROP_KEY: - g_free (self->priv->key); - self->priv->key = g_value_dup_string (value); - g_object_notify (object, "key"); - break; + /* Read only; fall through */ default: /* We don't have any other property... */ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); |