After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 616520 - Add support for enums without GType
Add support for enums without GType
Status: RESOLVED FIXED
Product: pygi
Classification: Deprecated
Component: general
unspecified
Other All
: Normal normal
: 0.6
Assigned To: pygi-maint
pygi-maint
Depends on:
Blocks:
 
 
Reported: 2010-04-22 13:58 UTC by Tomeu Vizoso
Modified: 2010-04-22 17:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add support for enums without GType (7.28 KB, patch)
2010-04-22 13:58 UTC, Tomeu Vizoso
reviewed Details | Review

Description Tomeu Vizoso 2010-04-22 13:58:17 UTC
.
Comment 1 Tomeu Vizoso 2010-04-22 13:58:20 UTC
Created attachment 159338 [details] [review]
Add support for enums without GType
Comment 2 Johan (not receiving bugmail) Dahlin 2010-04-22 16:38:44 UTC
Review of attachment 159338 [details] [review]:

::: gi/module.py
@@ +88,3 @@
         if isinstance(info, EnumInfo):
             g_type = info.get_g_type()
+            wrapper = g_type.pytype

Would be easier to follow if you did this rename separately (or not at all)

::: gi/pygi-argument.c
@@ +1526,3 @@
+                        }
+
+                        object = PyObject_CallObject(py_type, py_args);

py_args = PyObject_CallFunction(py_type, "l", arg->v_long);
Comment 3 Tomeu Vizoso 2010-04-22 17:55:17 UTC
Attachment 159338 [details] pushed as 391640b - Add support for enums without GType