fix crash when copy'ing latent plugins
[ardour.git] / libs / clearlooks-newer / 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 /* declare those three functions first to avoid warnings using gcc */
8 GE_EXPORT void
9 theme_init (GTypeModule* module);
10
11 GE_EXPORT void
12 theme_exit (void);
13
14 GE_EXPORT GtkRcStyle*
15 theme_create_rc_style (void);
16
17 GE_EXPORT void
18 theme_init (GTypeModule* module)
19 {
20         clearlooks_rc_style_register_type (module);
21         clearlooks_style_register_type (module);
22 }
23
24 GE_EXPORT void
25 theme_exit (void)
26 {
27 }
28
29 GE_EXPORT GtkRcStyle*
30 theme_create_rc_style (void)
31 {
32         return GTK_RC_STYLE (g_object_new (CLEARLOOKS_TYPE_RC_STYLE, NULL));
33 }