diff options
author | Gustavo J. A. M. Carneiro <gcarneiro@src.gnome.org> | 2004-09-26 14:03:37 +0000 |
---|---|---|
committer | Gustavo J. A. M. Carneiro <gcarneiro@src.gnome.org> | 2004-09-26 14:03:37 +0000 |
commit | aa2fc4070b361e679a219e3c1e9dc75dd3acfb9d (patch) | |
tree | b157cba67d0aef6ac7c347a0b82fb70155603e7b | |
parent | 98e8f5d07b21abe3b89667124858db5bc607e7c9 (diff) | |
download | pygobject-aa2fc4070b361e679a219e3c1e9dc75dd3acfb9d.tar.gz pygobject-aa2fc4070b361e679a219e3c1e9dc75dd3acfb9d.tar.xz pygobject-aa2fc4070b361e679a219e3c1e9dc75dd3acfb9d.zip |
Make PyGClosure semi-public
-rw-r--r-- | gobject/pygobject-private.h | 8 | ||||
-rw-r--r-- | gobject/pygobject.h | 9 |
2 files changed, 9 insertions, 8 deletions
diff --git a/gobject/pygobject-private.h b/gobject/pygobject-private.h index 770e692..e74ec0a 100644 --- a/gobject/pygobject-private.h +++ b/gobject/pygobject-private.h @@ -65,14 +65,6 @@ PyObject *pyg_param_gvalue_as_pyobject(const GValue* gvalue, gboolean copy_boxed, const GParamSpec* pspec); -typedef struct _PyGClosure PyGClosure; -struct _PyGClosure { - GClosure closure; - PyObject *callback; - PyObject *extra_args; /* tuple of extra args to pass to callback */ - PyObject *swap_data; /* other object for gtk_signal_connect_object */ -}; - GClosure *pyg_closure_new(PyObject *callback, PyObject *extra_args, PyObject *swap_data); GClosure *pyg_signal_class_closure_get(void); diff --git a/gobject/pygobject.h b/gobject/pygobject.h index 90d5250..14a83c2 100644 --- a/gobject/pygobject.h +++ b/gobject/pygobject.h @@ -7,6 +7,15 @@ #include <glib.h> #include <glib-object.h> + /* PyGClosure is a _private_ structure */ +typedef struct _PyGClosure PyGClosure; +struct _PyGClosure { + GClosure closure; + PyObject *callback; + PyObject *extra_args; /* tuple of extra args to pass to callback */ + PyObject *swap_data; /* other object for gtk_signal_connect_object */ +}; + typedef struct { PyObject_HEAD GObject *obj; |