2
* Copyright (C) 2001 Red Hat, Inc.
3
* Copyright (C) 2002 Ximian, Inc.
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Library General Public
7
* License as published by the Free Software Foundation; either
8
* version 2 of the License, or (at your option) any later version.
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Library General Public License for more details.
15
* You should have received a copy of the GNU Library General Public
16
* License along with this library; if not, write to the
17
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
* Boston, MA 02111-1307, USA.
20
* Written by Owen Taylor <otaylor@redhat.com>
21
* modified by Alexander Larsson <alexl@redhat.com>
22
* modified by Christopher Lahey <clahey@ximian.com>
24
#include <gtk/gtkstyle.h>
26
typedef struct _IndustrialStyle IndustrialStyle;
27
typedef struct _IndustrialStyleClass IndustrialStyleClass;
29
extern GType industrial_type_style;
31
#define INDUSTRIAL_TYPE_STYLE industrial_type_style
32
#define INDUSTRIAL_STYLE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), INDUSTRIAL_TYPE_STYLE, IndustrialStyle))
33
#define INDUSTRIAL_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), INDUSTRIAL_TYPE_STYLE, IndustrialStyleClass))
34
#define INDUSTRIAL_IS_STYLE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), INDUSTRIAL_TYPE_STYLE))
35
#define INDUSTRIAL_IS_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), INDUSTRIAL_TYPE_STYLE))
36
#define INDUSTRIAL_STYLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), INDUSTRIAL_TYPE_STYLE, IndustrialStyleClass))
38
struct _IndustrialStyle
40
GtkStyle parent_instance;
43
double contrast_center;
44
gboolean rounded_buttons;
46
/* from light to dark */
47
GHashTable *shading_hash; /* Of type Shading */
50
struct _IndustrialStyleClass
52
GtkStyleClass parent_class;
55
void industrial_style_register_type (GTypeModule *module);