diff options
| author | James Henstridge <james@daa.com.au> | 2001-06-22 12:37:52 +0000 |
|---|---|---|
| committer | James Henstridge <jamesh@src.gnome.org> | 2001-06-22 12:37:52 +0000 |
| commit | 9b322a660e816c67109ac6246afd774b799b3a9d (patch) | |
| tree | a4d90f6c5b544abb779ae7e126af06b603c5a930 /examples | |
| parent | 4518d3615b7e13ec4790b383ee8ce725adf327dd (diff) | |
new arg type for GType and GtkType args that uses pyg_type_from_object.
2001-06-22 James Henstridge <james@daa.com.au>
* codegen/argtypes.py (GTypeArg.write_param): new arg type for
GType and GtkType args that uses pyg_type_from_object.
* gobjectmodule.c (pyg_type_from_object): new function to get a
type code from various types of python objects (currently, integer
like objects, strings and other objects that have a __gtype__
attribute).
(pygobject__init__): use pyg_type_from_object to get the object
type.
(pyg_signal_new): same here.
2001-06-21 James Henstridge <james@daa.com.au>
* gobjectmodule.c (pyg_boxed_getattro): allow getattr to work on
PyGBoxed types (while not overloading tp_getattr). We fall back
to tp_getattr if provided by the boxed type.
(pyg_register_boxed): make sure tp_getattro is set correctly.
* gtk/gtk-types.c (_pygtk_register_boxed_types): convert
GtkAccelGroup to a PyGBoxed type.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions
