summaryrefslogtreecommitdiffstats
path: root/gobject/pygobject-private.h
diff options
context:
space:
mode:
authorManish Singh <yosh@gimp.org>2005-08-01 22:50:42 +0000
committerManish Singh <yosh@src.gnome.org>2005-08-01 22:50:42 +0000
commit9ef8e1721cbf74cd758380ace340ca9f2f19928b (patch)
treeb39ae020119bea8b57860cd79ce9d8f4fdf23da8 /gobject/pygobject-private.h
parentca9f9bd7c784486b1f712445d0659ea3ba19099c (diff)
downloadpygobject-9ef8e1721cbf74cd758380ace340ca9f2f19928b.tar.gz
pygobject-9ef8e1721cbf74cd758380ace340ca9f2f19928b.tar.xz
pygobject-9ef8e1721cbf74cd758380ace340ca9f2f19928b.zip
gobject/pygobject-private.h Add a convenience function
2005-08-01 Manish Singh <yosh@gimp.org> * gobject/pygobject-private.h * gobject/pygmaincontext.c: Add a convenience function (pyg_main_context_new) to create a PyGMainContext from a GMainContext. Takes care of refing the supplied GMainContext as well. * gobject/gobjectmodule.c (pyg_main_context_default) * gobject/pygmainloop.c (_wrap_g_main_loop_get_context) * gobject/pygsource.c (pyg_source_get_context): use the new convenience function here. This fixes bug #312259.
Diffstat (limited to 'gobject/pygobject-private.h')
-rw-r--r--gobject/pygobject-private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gobject/pygobject-private.h b/gobject/pygobject-private.h
index c09903e..1055011 100644
--- a/gobject/pygobject-private.h
+++ b/gobject/pygobject-private.h
@@ -189,6 +189,7 @@ typedef struct {
} PyGMainContext;
extern PyTypeObject PyGMainContext_Type;
+PyObject * pyg_main_context_new (GMainContext *context);
/* pygparamspec */