diff options
| author | James Henstridge <james@daa.com.au> | 2001-03-18 14:56:34 +0000 |
|---|---|---|
| committer | James Henstridge <jamesh@src.gnome.org> | 2001-03-18 14:56:34 +0000 |
| commit | 539b128779de2cc82ecd5d7589cb6d19adff07b9 (patch) | |
| tree | cc8e2da6e02de6d245a9a5ef4578436ba532a821 /gobject/pygobject.h | |
| parent | f43cc22a5cb4425b6ca32854f17ac68b42714ce0 (diff) | |
| download | pygobject-539b128779de2cc82ecd5d7589cb6d19adff07b9.tar.gz pygobject-539b128779de2cc82ecd5d7589cb6d19adff07b9.tar.xz pygobject-539b128779de2cc82ecd5d7589cb6d19adff07b9.zip | |
Still broken. Needs more updating
2001-03-18 James Henstridge <james@daa.com.au>
* gtk/pygtktreemodel.c (pygtk_tree_model_class_init): signals are
now created in the gtktreemodel.c, so we don't need to.
* gtk/gtk.defs (Adjustment): make parent GtkObject, as GtkData is
gone.
(GtkText): remove from binding.
* codegen/codegen.py (write_source): pass in the get_type function
when registering classes.
(gettypetmpl): remove template.
(write_class): remove get_type method generator. Handled by __gtype__
* gobjectmodule.c (initgobject): add argument to g_type_init call.
(pyg_value_from_pyobject): use G_VALUE_HOLDS_* rather than
G_IS_VALUE_*.
(pyg_value_as_pyobject): same here.
(pygobject_register_class): add an argument that takes the
get_type function for the GObject. This is used to add a
__gtype__ attribute to the class (the get_type function is not
actually called until __gtype__ is accessed).
Diffstat (limited to 'gobject/pygobject.h')
| -rw-r--r-- | gobject/pygobject.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gobject/pygobject.h b/gobject/pygobject.h index 2e0a7d7..71b3b33 100644 --- a/gobject/pygobject.h +++ b/gobject/pygobject.h @@ -20,6 +20,7 @@ typedef struct { struct _PyGObject_Functions { void (* register_class)(PyObject *dict, const gchar *class_name, + GType (* get_type)(void), PyExtensionClass *ec, PyObject *bases); void (* register_wrapper)(PyObject *self); PyExtensionClass *(* lookup_class)(GType type); |
