]> Pileus Git - ~andy/gtk/blob - modules/engines/ms-windows/msw_rc_style.c
Change FSF Address
[~andy/gtk] / modules / engines / ms-windows / msw_rc_style.c
1 /* MS-Windows Engine (aka GTK-Wimp)
2  *
3  * Copyright (C) 2003, 2004 Raymond Penners <raymond@dotsphinx.com>
4  * Includes code adapted from redmond95 by Owen Taylor, and
5  * gtk-nativewin by Evan Martin
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public
18  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
19  */
20
21 #include "msw_style.h"
22 #include "msw_rc_style.h"
23
24 static void msw_rc_style_init (MswRcStyle * style);
25 static void msw_rc_style_class_init (MswRcStyleClass * klass);
26 static GtkStyle *msw_rc_style_create_style (GtkRcStyle * rc_style);
27
28 static GtkRcStyleClass *parent_class;
29
30 GType msw_type_rc_style = 0;
31
32 void
33 msw_rc_style_register_type (GTypeModule *module)
34 {
35   const GTypeInfo object_info = {
36     sizeof (MswRcStyleClass),
37     (GBaseInitFunc) NULL,
38     (GBaseFinalizeFunc) NULL,
39     (GClassInitFunc) msw_rc_style_class_init,
40     NULL,                       /* class_finalize */
41     NULL,                       /* class_data */
42     sizeof (MswRcStyle),
43     0,                          /* n_preallocs */
44     (GInstanceInitFunc) msw_rc_style_init,
45   };
46
47   msw_type_rc_style = g_type_module_register_type (module,
48                                                    GTK_TYPE_RC_STYLE,
49                                                    "MswRcStyle",
50                                                    &object_info, 0);
51 }
52
53 static void
54 msw_rc_style_init (MswRcStyle *style)
55 {
56 }
57
58 static void
59 msw_rc_style_class_init (MswRcStyleClass *klass)
60 {
61   GtkRcStyleClass *rc_style_class = GTK_RC_STYLE_CLASS (klass);
62
63   parent_class = g_type_class_peek_parent (klass);
64
65   rc_style_class->create_style = msw_rc_style_create_style;
66 }
67
68 /* Create an empty style suitable to this RC style
69  */
70 static GtkStyle *
71 msw_rc_style_create_style (GtkRcStyle *rc_style)
72 {
73   return g_object_new (MSW_TYPE_STYLE, NULL);
74 }