1 /* -*- Mode: C; c-basic-offset: 4 -*-
2 * pygtk- Python bindings for the GTK toolkit.
3 * Copyright (C) 1998-2003 James Henstridge
4 *
5 * libglademodule.c: wrapper for the libglade library.
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
20 * USA
21 */
22 #ifdef HAVE_CONFIG_H
23 # include "config.h"
24 #endif
25
26 #include <Python.h>
27 #include <pygobject.h>
28 #include "pygtk.h"
29 #include <glade/glade.h>
30
31 void pylibglade_register_classes(PyObject *d);
32 extern PyMethodDef pylibglade_functions[];
33
34 DL_EXPORT(void)
initglade(void)35 initglade(void)
36 {
37 PyObject *m, *d;
38
39 m = Py_InitModule("gtk.glade", pylibglade_functions);
40 d = PyModule_GetDict(m);
41
42 init_pygobject();
43 init_pygtk();
44
45 glade_init();
46
47 pylibglade_register_classes(d);
48 }
49