diff options
| author | James Henstridge <james@daa.com.au> | 2001-09-18 10:05:22 +0000 |
|---|---|---|
| committer | James Henstridge <jamesh@src.gnome.org> | 2001-09-18 10:05:22 +0000 |
| commit | bcaf62aab7e7dca0e9c8bbc5e45c848b96830d3e (patch) | |
| tree | 0d268f9726ff33747b4e77c5d03c5fc1f86d7bc4 /examples | |
| parent | ff56783b4e7c5569078681f325496c4bc684e53b (diff) | |
| download | pygobject-bcaf62aab7e7dca0e9c8bbc5e45c848b96830d3e.tar.gz pygobject-bcaf62aab7e7dca0e9c8bbc5e45c848b96830d3e.tar.xz pygobject-bcaf62aab7e7dca0e9c8bbc5e45c848b96830d3e.zip | |
export this function.
2001-09-18 James Henstridge <james@daa.com.au>
* pygobject.h (pyg_type_wrapper_new): export this function.
* codegen/argtypes.py (GTypeArg.write_return): wrap GType return
values as PyGTypeWrappers rather than ints.
* codegen/codegen.py (write_source): pass the typecode macros to
pygobject_register_class and pyg_register_interface rather than
references to the get_type functions.
* pygobject.h (_PyGObject_Functions): fix up prototypes.
* gobjectmodule.c (check_bases): check if the base class is an
extensionclass before poking around in class->bases.
(pyg_type_*): don't bother storing the _get_type() function for
lazy initialisation. Instead, just store the GType. Also, remove
code for coercing them into numbers.
(pygobject_register_class): take the type, rather that get_type
routine as an argument.
(pyg_register_interface): same here.
(pyg_type_from_object): don't accept types that convert to ints as
being equivalent to GTypes.
(pyg_register_boxed): set the __gtype__ attribute to a
PyGTypeWrapper.
(pyg_type_register): set __gtype__ to a PyGTypeWrapper.
(pyg_type_name): use pyg_type_from_name
(pyg_type_from_name): return a PyGTypeWrapper object.
(pyg_type_parent): update.
(pyg_type_is_a): update.
(pyg_type_children): update.
(pyg_type_interfaces): update.
(initgobject): set __gtype__ attributes to PyGTypeWrapper objects.
(initgobject): make type constants PyGTypeWrapper objects.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions
