[gjs] Make GObjectIntrospection classes and methods writable



commit 872afb2670c18e3deeff793533e2297137d7382a
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Thu May 19 19:40:36 2011 +0200

    Make GObjectIntrospection classes and methods writable
    
    Modify the default JSPROPERTY flags to remove JSPROP_READONLY, so
    it is possible to replace the methods and classes from overrides.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=646633

 gjs/jsapi-util.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gjs/jsapi-util.h b/gjs/jsapi-util.h
index 4d61916..bd3c5fe 100644
--- a/gjs/jsapi-util.h
+++ b/gjs/jsapi-util.h
@@ -53,7 +53,7 @@ typedef struct GjsRootedArray GjsRootedArray;
  * PERMANENT: forbid deleting the prop
  * ENUMERATE: allows copyProperties to work among other reasons to have it
  */
-#define GJS_MODULE_PROP_FLAGS (JSPROP_READONLY | JSPROP_PERMANENT | JSPROP_ENUMERATE)
+#define GJS_MODULE_PROP_FLAGS (JSPROP_PERMANENT | JSPROP_ENUMERATE)
 
 /* priv_from_js_with_typecheck checks that the object is in fact an
  * instance of the specified class before accessing its private data.



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