[pygobject] Fix API break with pygobject.h
- From: Simon Feltman <sfeltman src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Fix API break with pygobject.h
- Date: Mon, 4 Feb 2013 23:18:37 +0000 (UTC)
commit a3a30559240077194f23c4651d6f382fa59b7d63
Author: Simon Feltman <sfeltman src gnome org>
Date: Mon Feb 4 15:16:37 2013 -0800
Fix API break with pygobject.h
Move pygobject_new_full after everything in the public API table.
This fixes a break that went in along with bug 675726.
https://bugzilla.gnome.org/show_bug.cgi?id=675726
gi/_gobject/gobjectmodule.c | 5 +++--
gi/_gobject/pygobject.h | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gi/_gobject/gobjectmodule.c b/gi/_gobject/gobjectmodule.c
index 0731193..96b5c94 100644
--- a/gi/_gobject/gobjectmodule.c
+++ b/gi/_gobject/gobjectmodule.c
@@ -2050,7 +2050,6 @@ struct _PyGObject_Functions pygobject_api_functions = {
pygobject_register_wrapper,
pygobject_lookup_class,
pygobject_new,
- pygobject_new_full,
pyg_closure_new,
pygobject_watch_closure,
@@ -2118,7 +2117,9 @@ struct _PyGObject_Functions pygobject_api_functions = {
pyg_gerror_exception_check,
pyglib_option_group_new,
- pyg_type_from_object_strict
+ pyg_type_from_object_strict,
+
+ pygobject_new_full
};
/* for addon libraries ... */
diff --git a/gi/_gobject/pygobject.h b/gi/_gobject/pygobject.h
index bfe6706..ba40986 100644
--- a/gi/_gobject/pygobject.h
+++ b/gi/_gobject/pygobject.h
@@ -92,7 +92,6 @@ struct _PyGObject_Functions {
void (* register_wrapper)(PyObject *self);
PyTypeObject *(* lookup_class)(GType type);
PyObject *(* newgobj)(GObject *obj);
- PyObject *(* newgobj_full)(GObject *obj, gboolean sink, gpointer g_class);
GClosure *(* closure_new)(PyObject *callback, PyObject *extra_args,
PyObject *swap_data);
@@ -189,6 +188,7 @@ struct _PyGObject_Functions {
gboolean (*gerror_exception_check) (GError **error);
PyObject* (*option_group_new) (GOptionGroup *group);
GType (* type_from_object_strict) (PyObject *obj, gboolean strict);
+ PyObject *(* newgobj_full)(GObject *obj, gboolean sink, gpointer g_class);
};
#ifndef _INSIDE_PYGOBJECT_
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]