fix crash when copy'ing latent plugins
[ardour.git] / libs / clearlooks-older / clearlooks_theme_main.c
1 #include <gmodule.h>
2 #include <gtk/gtk.h>
3
4 #include "clearlooks_style.h"
5 #include "clearlooks_rc_style.h"
6
7 G_MODULE_EXPORT void
8 theme_init (GTypeModule *module)
9 {
10   clearlooks_rc_style_register_type (module);
11   clearlooks_style_register_type (module);
12   printf("theme_init() called from internal clearlooks engine\n");
13 }
14
15 G_MODULE_EXPORT void
16 theme_exit (void)
17 {
18 }
19
20 G_MODULE_EXPORT GtkRcStyle *
21 theme_create_rc_style (void)
22 {
23   return GTK_RC_STYLE (g_object_new (CLEARLOOKS_TYPE_RC_STYLE, NULL));
24 }
25
26 /* The following function will be called by GTK+ when the module
27  * is loaded and checks to see if we are compatible with the
28  * version of GTK+ that loads us.
29  */
30 G_MODULE_EXPORT const gchar* g_module_check_init (GModule *module);
31 const gchar*
32 g_module_check_init (GModule *module)
33 {
34   return gtk_check_version (GTK_MAJOR_VERSION,
35                             GTK_MINOR_VERSION,
36                             GTK_MICRO_VERSION - GTK_INTERFACE_AGE);
37 }