| 1 | /* -*- Mode: C; c-basic-offset: 4 -*- |
|---|
| 2 | * pygtk- Python bindings for the GTK toolkit. |
|---|
| 3 | * Copyright (C) 1998-2003 James Henstridge |
|---|
| 4 | * |
|---|
| 5 | * atkmodule.c: module wrapping the ATK 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
|---|
| 20 | * USA |
|---|
| 21 | */ |
|---|
| 22 | |
|---|
| 23 | #ifdef HAVE_CONFIG_H |
|---|
| 24 | #include "config.h" |
|---|
| 25 | #endif |
|---|
| 26 | |
|---|
| 27 | /* include this first, before NO_IMPORT_PYGOBJECT is defined */ |
|---|
| 28 | #include <pygobject.h> |
|---|
| 29 | |
|---|
| 30 | void pyatk_register_classes (PyObject *d); |
|---|
| 31 | void pyatk_add_constants(PyObject *module, const gchar *strip_prefix); |
|---|
| 32 | void _pyatk_register_boxed_types(void); |
|---|
| 33 | |
|---|
| 34 | extern PyMethodDef pyatk_functions[]; |
|---|
| 35 | |
|---|
| 36 | DL_EXPORT(void) |
|---|
| 37 | initatk(void) |
|---|
| 38 | { |
|---|
| 39 | PyObject *m, *d; |
|---|
| 40 | |
|---|
| 41 | init_pygobject (); |
|---|
| 42 | |
|---|
| 43 | m = Py_InitModule ("atk", pyatk_functions); |
|---|
| 44 | d = PyModule_GetDict (m); |
|---|
| 45 | _pyatk_register_boxed_types(); |
|---|
| 46 | pyatk_register_classes (d); |
|---|
| 47 | pyatk_add_constants(m, "ATK_"); |
|---|
| 48 | } |
|---|