summaryrefslogtreecommitdiffstats
path: root/gobject/pygobject.h
diff options
context:
space:
mode:
authorJohan Dahlin <jdahlin@src.gnome.org>2004-06-04 16:01:30 +0000
committerJohan Dahlin <jdahlin@src.gnome.org>2004-06-04 16:01:30 +0000
commitcf0d95e330244e4434dbea63a4260cf6e6498591 (patch)
tree4a56f5555308b00cac718adda2bddf0b75e17ddb /gobject/pygobject.h
parent64c298cb4a8ba1be1bc5da6d7c3d6fa4398a6e7c (diff)
downloadpygobject-cf0d95e330244e4434dbea63a4260cf6e6498591.tar.gz
pygobject-cf0d95e330244e4434dbea63a4260cf6e6498591.tar.xz
pygobject-cf0d95e330244e4434dbea63a4260cf6e6498591.zip
Impl
* gtk/gtkwidget.override (_wrap_gtk_widget_class_install_style_property): Impl * gtk/gtkcontainer.override (_wrap_gtk_container_class_list_child_properties): Rename first kwlist argument to klass (from widget), class should be a GObjectClass and not a GtkWidgetClass (_wrap_gtk_container_class_install_child_property): Impl. * gtk/gtk.defs: Change a couple of methods to functions and set correct class * pygobject.h: Add pyg_param_spec_from_object * gobjectmodule.c (create_property): Don't install the property here, return it instead. And don't require a GObjectClass as argument (pyg_param_spec_from_object): New function (add_properties): Update to new create_property (pygobject_api_functions): Export pyg_param_spec_from_object
Diffstat (limited to 'gobject/pygobject.h')
-rw-r--r--gobject/pygobject.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gobject/pygobject.h b/gobject/pygobject.h
index e65611d..a4cdfce 100644
--- a/gobject/pygobject.h
+++ b/gobject/pygobject.h
@@ -109,6 +109,7 @@ struct _PyGObject_Functions {
PyGThreadBlockFunc unblock_threads;
PyTypeObject *paramspec_type;
PyObject *(* paramspec_new)(GParamSpec *spec);
+ GParamSpec *(*paramspec_get)(PyObject *tuple);
};
#ifndef _INSIDE_PYGOBJECT_
@@ -148,7 +149,7 @@ struct _PyGObject_Functions *_PyGObject_API;
#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_param_spec_from_object (_PyGObject_API->paramspec_get)
#define pyg_block_threads() G_STMT_START { \
if (_PyGObject_API->block_threads != NULL) \
(* _PyGObject_API->block_threads)(); \