[libgdata] core: Read-only properties are not going to be set via the public API



commit 19e91a0bfae358caf04b1522cc01ce64347caef7
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Jun 10 13:52:39 2015 +0200

    core: Read-only properties are not going to be set via the public API
    
    https://bugzilla.gnome.org/show_bug.cgi?id=684920

 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 e75aa08..cc20d25 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]