summaryrefslogtreecommitdiff
path: root/src/scripts/pyolian
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2019-10-11 08:17:56 +0200
committerDave Andreoli <dave@gurumeditation.it>2019-10-11 08:18:20 +0200
commit3c0e9b424d5d6741effad8b79d365d9c8bba9dfb (patch)
tree85ea07b8c3aacbffe2192e6aad3db3504cc2a7f8 /src/scripts/pyolian
parenta3eb4670f1f0f89dd9c7f31b82467aaf2fb0ec48 (diff)
Pyolian: correctly define c_type as a property
Diffstat (limited to 'src/scripts/pyolian')
-rw-r--r--src/scripts/pyolian/eolian.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scripts/pyolian/eolian.py b/src/scripts/pyolian/eolian.py
index abb8e17a94..9ab6abd01e 100644
--- a/src/scripts/pyolian/eolian.py
+++ b/src/scripts/pyolian/eolian.py
@@ -1137,7 +1137,8 @@ class Type(Object):
1137 def builtin_type(self): 1137 def builtin_type(self):
1138 return Eolian_Type_Builtin_Type(lib.eolian_type_builtin_type_get(self)) 1138 return Eolian_Type_Builtin_Type(lib.eolian_type_builtin_type_get(self))
1139 1139
1140 def c_type_get(self): 1140 @cached_property
1141 def c_type(self):
1141 s = lib.eolian_type_c_type_get(self) 1142 s = lib.eolian_type_c_type_get(self)
1142 ret = _str_to_py(s) 1143 ret = _str_to_py(s)
1143 lib.eina_stringshare_del(c_void_p(s)) 1144 lib.eina_stringshare_del(c_void_p(s))