]> Pileus Git - ~andy/gtk/blob - modules/engines/pixbuf/pixbuf-main.c
Change FSF Address
[~andy/gtk] / modules / engines / pixbuf / pixbuf-main.c
1 /* GTK+ Pixbuf Engine
2  * Copyright (C) 1998-2000 Red Hat, Inc.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16  *
17  * Written by Owen Taylor <otaylor@redhat.com>, based on code by
18  * Carsten Haitzler <raster@rasterman.com>
19  */
20
21 #include "pixbuf.h"
22 #include "pixbuf-style.h"
23 #include "pixbuf-rc-style.h"
24 #include <gmodule.h>
25
26 G_MODULE_EXPORT void
27 theme_init (GTypeModule *module)
28 {
29   pixbuf_rc_style_register_type (module);
30   pixbuf_style_register_type (module);
31 }
32
33 G_MODULE_EXPORT void
34 theme_exit (void)
35 {
36 }
37
38 G_MODULE_EXPORT GtkRcStyle *
39 theme_create_rc_style (void)
40 {
41   return g_object_new (PIXBUF_TYPE_RC_STYLE, NULL);
42 }
43
44 /* The following function will be called by GTK+ when the module
45  * is loaded and checks to see if we are compatible with the
46  * version of GTK+ that loads us.
47  */
48 G_MODULE_EXPORT const gchar* g_module_check_init (GModule *module);
49 const gchar*
50 g_module_check_init (GModule *module)
51 {
52   return gtk_check_version (GTK_MAJOR_VERSION,
53                             GTK_MINOR_VERSION,
54                             GTK_MICRO_VERSION - GTK_INTERFACE_AGE);
55 }