- Don't return -1, but NULL. Just like pygi_get_property_value() does when
introspection support is enabled. this unbreaks py-gobject, as noticed with rednotebook and several other applications. ok aja@
This commit is contained in:
parent
8f7ba0e27b
commit
051a4cadbb
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.27 2010/09/30 07:30:44 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.28 2010/10/02 08:33:03 jasper Exp $
|
||||
|
||||
SHARED_ONLY= Yes
|
||||
|
||||
@ -9,6 +9,7 @@ GNOME_VERSION= 2.26.0
|
||||
|
||||
PKGNAME= py-gobject-${GNOME_VERSION}
|
||||
EPOCH= 0
|
||||
REVISION= 0
|
||||
|
||||
SHARED_LIBS += pyglib-2.0-python${MODPY_VERSION} 1.0 # .0.0
|
||||
|
||||
|
16
devel/py-gobject/patches/patch-gi_pygi_h
Normal file
16
devel/py-gobject/patches/patch-gi_pygi_h
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-gi_pygi_h,v 1.1 2010/10/02 08:33:03 jasper Exp $
|
||||
|
||||
Don't return -1, but NULL. Just like pygi_get_property_value() does when
|
||||
introspection support is enabled.
|
||||
|
||||
--- gi/pygi.h.orig Sat Oct 2 10:22:36 2010
|
||||
+++ gi/pygi.h Sat Oct 2 10:22:38 2010
|
||||
@@ -152,7 +152,7 @@ static inline PyObject *
|
||||
pygi_get_property_value (PyGObject *instance,
|
||||
const gchar *attr_name)
|
||||
{
|
||||
- return -1;
|
||||
+ return NULL;
|
||||
}
|
||||
|
||||
static inline gint
|
Loading…
Reference in New Issue
Block a user