diff options
| author | Johan Dahlin <johan@gnome.org> | 2008-07-26 14:46:58 +0000 |
|---|---|---|
| committer | Johan Dahlin <johan@src.gnome.org> | 2008-07-26 14:46:58 +0000 |
| commit | d2f53eb32409ea9dbf654febc7853badc81a8e4b (patch) | |
| tree | 4c6677c57a4fa99ac67a7000c65bed2cc826b0a1 /gobject/pyginterface.h | |
| parent | 130e20efbdc32e7b49960f24fac59c04fb613f87 (diff) | |
| download | pygobject-d2f53eb32409ea9dbf654febc7853badc81a8e4b.tar.gz pygobject-d2f53eb32409ea9dbf654febc7853badc81a8e4b.tar.xz pygobject-d2f53eb32409ea9dbf654febc7853badc81a8e4b.zip | |
reviewed by: <delete if not using a buddy>
2008-07-26 Johan Dahlin <johan@gnome.org>
reviewed by: <delete if not using a buddy>
* glib/pyglib-python-compat.h:
* glib/pyglib.h:
Make a few macros public
* gobject/Makefile.am:
* gobject/gobjectmodule.c (init_gobject):
* gobject/pyginterface.c (pyg_interface_init),
(pyg_interface_free), (pyg_register_interface),
(pyg_register_interface_info), (pyg_lookup_interface_info),
(pygobject_interface_register_types):
* gobject/pyginterface.h:
* gobject/pygobject-private.h:
* gobject/pygobject.c:
Move GInterface wrapper into its own file
svn path=/trunk/; revision=875
Diffstat (limited to 'gobject/pyginterface.h')
| -rw-r--r-- | gobject/pyginterface.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/gobject/pyginterface.h b/gobject/pyginterface.h new file mode 100644 index 0000000..8dd0ae8 --- /dev/null +++ b/gobject/pyginterface.h @@ -0,0 +1,40 @@ +/* -*- Mode: C; c-basic-offset: 4 -*- + * pygtk- Python bindings for the GTK toolkit. + * Copyright (C) 1998-2003 James Henstridge + * 2004-2008 Johan Dahlin + * pyginterface.c: wrapper for the gobject library. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + * USA + */ + +#ifndef __PYGOBJECT_INTERFACE_H__ +#define __PYGOBJECT_INTERFACE_H__ + +extern GQuark pyginterface_type_key; +extern GQuark pyginterface_info_key; + +extern PyTypeObject PyGInterface_Type; + +void pyg_register_interface(PyObject *dict, + const gchar *class_name, + GType gtype, + PyTypeObject *type); +const GInterfaceInfo * pyg_lookup_interface_info(GType gtype); +void pyg_register_interface_info(GType gtype, const + GInterfaceInfo *info); +void pygobject_interface_register_types(PyObject *d); + +#endif /* __PYGOBJECT_INTERFACE_H__ */ |
