From aa2fc4070b361e679a219e3c1e9dc75dd3acfb9d Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Sun, 26 Sep 2004 14:03:37 +0000 Subject: Make PyGClosure semi-public --- gobject/pygobject-private.h | 8 -------- 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 #include + /* 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; -- cgit