1
/* -*- Mode: C; c-basic-offset: 4 -*-
2
Gimp-Python - allows the writing of Gimp plugins in Python.
3
Copyright (C) 2005-2006 Manish Singh <yosh@gimp.org>
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
15
You should have received a copy of the GNU General Public License
16
along with this program; if not, write to the Free Software
17
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27
#include <pygobject.h>
29
#include <gdk-pixbuf/gdk-pixbuf.h>
31
#include <libgimpthumb/gimpthumb.h>
33
#include "pygimp-util.h"
36
void gimpthumb_register_classes(PyObject *d);
37
void gimpthumb_add_constants(PyObject *module, const gchar *strip_prefix);
38
extern PyMethodDef gimpthumb_functions[];
41
static char gimpthumb_doc[] =
42
"This module provides interfaces to allow you to write gimp plugins"
50
pygimp_init_pygobject();
52
m = Py_InitModule3("gimpthumb", gimpthumb_functions, gimpthumb_doc);
53
d = PyModule_GetDict(m);
55
gimpthumb_register_classes(d);
56
gimpthumb_add_constants(m, "GIMP_THUMB_");
59
Py_FatalError("can't initialize module gimpthumb");