[pygobject/invoke-rewrite] [gi-invoke-ng] actual code to import overrides
- From: John Palmieri <johnp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/invoke-rewrite] [gi-invoke-ng] actual code to import overrides
- Date: Wed, 15 Jun 2011 15:43:37 +0000 (UTC)
commit c6112307f29f9a850e6e9efa5f55d5d4a363c6b0
Author: John (J5) Palmieri <johnp redhat com>
Date: Wed Jun 15 11:42:45 2011 -0400
[gi-invoke-ng] actual code to import overrides
gi/pygi-cache.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/gi/pygi-cache.c b/gi/pygi-cache.c
index 8ed9fad..65229eb 100644
--- a/gi/pygi-cache.c
+++ b/gi/pygi-cache.c
@@ -149,12 +149,7 @@ _interface_cache_new_from_interface_info (GIInterfaceInfo *iface_info)
ic = g_slice_new0 (PyGIInterfaceCache);
( (PyGIArgCache *)ic)->destroy_notify = (GDestroyNotify)_interface_cache_free_func;
ic->g_type = g_registered_type_info_get_g_type ( (GIRegisteredTypeInfo *)iface_info);
- if (ic->g_type != G_TYPE_NONE) {
- ic->py_type = _pygi_type_get_from_g_type (ic->g_type);
- } else {
- /* FIXME: avoid passing GI infos to noncache API */
- ic->py_type = _pygi_type_import_by_gi_info ( (GIBaseInfo *) iface_info);
- }
+ ic->py_type = _pygi_type_import_by_gi_info ( (GIBaseInfo *) iface_info);
if (ic->py_type == NULL)
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]