diff options
| author | Johan Dahlin <zilch@src.gnome.org> | 2004-03-27 17:55:47 +0000 |
|---|---|---|
| committer | Johan Dahlin <zilch@src.gnome.org> | 2004-03-27 17:55:47 +0000 |
| commit | b6696cc7e9b29a7a0b1d2a14472c8ee74dfbb6ce (patch) | |
| tree | 9f14192f47e6bb702685f1eff35898ff5b3d2c00 /gobject/pygobject.h | |
| parent | 59ebacbe8eba4d29fa963128a045625e15e84b3a (diff) | |
| download | pygobject-b6696cc7e9b29a7a0b1d2a14472c8ee74dfbb6ce.tar.gz pygobject-b6696cc7e9b29a7a0b1d2a14472c8ee74dfbb6ce.tar.xz pygobject-b6696cc7e9b29a7a0b1d2a14472c8ee74dfbb6ce.zip | |
This is a function, not a method.PYGTK_2_3_90
* gtk/gtk.defs (widget_list_style_properties): This is a function,
not a method.
* pygobject-private.h, pygobject.h, gobjectmodule.c:
Make PyGParamSpec_Type and pyg_param_spec_new part of the public API.
* gtk/gtkwidget.override (_wrap_gtk_widget_style_get_property)
(_wrap_gtk_widget_class_list_style_properties): Impl. Fixes
bug 138104
Diffstat (limited to 'gobject/pygobject.h')
| -rw-r--r-- | gobject/pygobject.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gobject/pygobject.h b/gobject/pygobject.h index 62c4cd2..d6c681c 100644 --- a/gobject/pygobject.h +++ b/gobject/pygobject.h @@ -40,6 +40,14 @@ typedef struct { typedef void (*PyGFatalExceptionFunc) (void); typedef void (*PyGThreadBlockFunc) (void); +typedef struct { + PyObject_HEAD + GParamSpec *pspec; +} PyGParamSpec; + +#define PyGParamSpec_Get(v) (((PyGParamSpec *)v)->pspec) +#define PyGParamSpec_Check(v) (PyObject_TypeCheck(v, &PyGParamSpec_Type)) + struct _PyGObject_Functions { void (* register_class)(PyObject *dict, const gchar *class_name, GType gtype, PyTypeObject *type, PyObject *bases); @@ -95,6 +103,8 @@ struct _PyGObject_Functions { PyGThreadBlockFunc unblock_threads_func); PyGThreadBlockFunc block_threads; PyGThreadBlockFunc unblock_threads; + PyTypeObject *paramspec_type; + PyObject *(* paramspec_new)(GParamSpec *spec); }; #ifndef _INSIDE_PYGOBJECT_ @@ -132,6 +142,8 @@ struct _PyGObject_Functions *_PyGObject_API; #define pyg_constant_strip_prefix (_PyGObject_API->constant_strip_prefix) #define pyg_error_check (_PyGObject_API->error_check) #define pyg_set_thread_block_funcs (_PyGObject_API->set_thread_block_funcs) +#define PyGParamSpec_Type (*_PyGObject_API->paramspec_type) +#define pyg_param_spec_new (_PyGObject_API->paramspec_new) #define pyg_block_threads() G_STMT_START { \ if (_PyGObject_API->block_threads != NULL) \ |
