]> Pileus Git - ~andy/gtk/blob - modules/engines/pixbuf/pixbuf-main.c
0b024598e877713c6b72fe758680ab03cbcd3d73
[~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, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  *
19  * Written by Owen Taylor <otaylor@redhat.com>, based on code by
20  * Carsten Haitzler <raster@rasterman.com>
21  */
22
23 #include "pixbuf.h"
24 #include "pixbuf-style.h"
25 #include "pixbuf-rc-style.h"
26 #include <gmodule.h>
27
28 G_MODULE_EXPORT void
29 theme_init (GTypeModule *module)
30 {
31   pixbuf_rc_style_register_type (module);
32   pixbuf_style_register_type (module);
33 }
34
35 G_MODULE_EXPORT void
36 theme_exit (void)
37 {
38 }
39
40 G_MODULE_EXPORT GtkRcStyle *
41 theme_create_rc_style (void)
42 {
43   return g_object_new (PIXBUF_TYPE_RC_STYLE, NULL);
44 }
45
46 /* The following function will be called by GTK+ when the module
47  * is loaded and checks to see if we are compatible with the
48  * version of GTK+ that loads us.
49  */
50 G_MODULE_EXPORT const gchar* g_module_check_init (GModule *module);
51 const gchar*
52 g_module_check_init (GModule *module)
53 {
54   return gtk_check_version (GTK_MAJOR_VERSION,
55                             GTK_MINOR_VERSION,
56                             GTK_MICRO_VERSION - GTK_INTERFACE_AGE);
57 }