summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Henstridge <james@daa.com.au>2001-09-20 01:03:59 +0000
committerJames Henstridge <jamesh@src.gnome.org>2001-09-20 01:03:59 +0000
commit72465c6c0c831029eafd8c71677f9e34f34d74d2 (patch)
tree257ee44c7b8e204021b4541e4d816c48ee5eaa7b
parent3a0059be1dedbc1fa4267ba0e71a194a6f818d52 (diff)
downloadpygobject-72465c6c0c831029eafd8c71677f9e34f34d74d2.tar.gz
pygobject-72465c6c0c831029eafd8c71677f9e34f34d74d2.tar.xz
pygobject-72465c6c0c831029eafd8c71677f9e34f34d74d2.zip
rename from new, so that the header is includable in C++ programs.PYGTK_1_99_1
2001-09-20 James Henstridge <james@daa.com.au> * pygobject.h (_PyGObject_Functions.newgobj): rename from new, so that the header is includable in C++ programs.
-rw-r--r--gobject/pygobject.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gobject/pygobject.h b/gobject/pygobject.h
index 16fd37a..bbe38f7 100644
--- a/gobject/pygobject.h
+++ b/gobject/pygobject.h
@@ -33,7 +33,7 @@ struct _PyGObject_Functions {
GType type, PyExtensionClass *ec, PyObject *bases);
void (* register_wrapper)(PyObject *self);
PyExtensionClass *(* lookup_class)(GType type);
- PyObject *(* new)(GObject *obj);
+ PyObject *(* newgobj)(GObject *obj);
GClosure *(* closure_new)(PyObject *callback, PyObject *extra_args,
PyObject *swap_data);
@@ -74,7 +74,7 @@ struct _PyGObject_Functions *_PyGObject_API;
#define pygobject_register_class (_PyGObject_API->register_class)
#define pygobject_register_wrapper (_PyGObject_API->register_wrapper)
#define pygobject_lookup_class (_PyGObject_API->lookup_class)
-#define pygobject_new (_PyGObject_API->new)
+#define pygobject_new (_PyGObject_API->newgobj)
#define pyg_closure_new (_PyGObject_API->closure_new)
#define pyg_type_from_object (_PyGObject_API->type_from_object)
#define pyg_type_wrapper_new (_PyGObject_API->type_wrapper_new)