fix crash when copy'ing latent plugins
[ardour.git] / libs / clearlooks-older / clearlooks_rc_style.h
1 /* Clearlooks Theme Engine
2  * Copyright (C) 2005 Richard Stellingwerff.
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>
20  * and by Alexander Larsson <alexl@redhat.com>
21  * Modified by Richard Stellingwerff <remenic@gmail.com>
22  */
23
24 #include <gtk/gtkrc.h>
25
26 typedef struct _ClearlooksRcStyle ClearlooksRcStyle;
27 typedef struct _ClearlooksRcStyleClass ClearlooksRcStyleClass;
28
29 extern GType clearlooks_type_rc_style;
30
31 #define CLEARLOOKS_TYPE_RC_STYLE              clearlooks_type_rc_style
32 #define CLEARLOOKS_RC_STYLE(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), CLEARLOOKS_TYPE_RC_STYLE, ClearlooksRcStyle))
33 #define CLEARLOOKS_RC_STYLE_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), CLEARLOOKS_TYPE_RC_STYLE, ClearlooksRcStyleClass))
34 #define CLEARLOOKS_IS_RC_STYLE(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), CLEARLOOKS_TYPE_RC_STYLE))
35 #define CLEARLOOKS_IS_RC_STYLE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), CLEARLOOKS_TYPE_RC_STYLE))
36 #define CLEARLOOKS_RC_STYLE_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), CLEARLOOKS_TYPE_RC_STYLE, ClearlooksRcStyleClass))
37
38 struct _ClearlooksRcStyle
39 {
40   GtkRcStyle parent_instance;
41
42   GdkColor spot_color;
43   gboolean has_spot_color;
44   double contrast;
45   guint8 sunkenmenubar;
46   guint8 progressbarstyle;
47   guint8 menubarstyle;
48   guint8 menuitemstyle;
49   guint8 listviewitemstyle;
50 };
51
52 struct _ClearlooksRcStyleClass
53 {
54   GtkRcStyleClass parent_class;
55 };
56
57 void clearlooks_rc_style_register_type (GTypeModule *module);