| |
1 /* |
| |
2 * Status Icon Themes for Pidgin |
| |
3 * |
| |
4 * Pidgin is the legal property of its developers, whose names are too numerous |
| |
5 * to list here. Please refer to the COPYRIGHT file distributed with this |
| |
6 * source distribution. |
| |
7 * |
| |
8 * This program is free software; you can redistribute it and/or modify |
| |
9 * it under the terms of the GNU General Public License as published by |
| |
10 * the Free Software Foundation; either version 2 of the License, or |
| |
11 * (at your option) any later version. |
| |
12 * |
| |
13 * This program is distributed in the hope that it will be useful, |
| |
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| |
16 * GNU General Public License for more details. |
| |
17 * |
| |
18 * You should have received a copy of the GNU General Public License |
| |
19 * along with this program; if not, write to the Free Software |
| |
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| |
21 */ |
| |
22 |
| |
23 #include "gtkstatus-icon-theme.h" |
| |
24 |
| |
25 /****************************************************************************** |
| |
26 * Globals |
| |
27 *****************************************************************************/ |
| |
28 |
| |
29 static GObjectClass *parent_class = NULL; |
| |
30 |
| |
31 /****************************************************************************** |
| |
32 * GObject Stuff |
| |
33 *****************************************************************************/ |
| |
34 |
| |
35 static void |
| |
36 pidgin_status_icon_theme_finalize(GObject *obj) |
| |
37 { |
| |
38 parent_class->finalize(obj); |
| |
39 } |
| |
40 |
| |
41 static void |
| |
42 pidgin_status_icon_theme_class_init(PidginStatusIconThemeClass *klass) |
| |
43 { |
| |
44 GObjectClass *obj_class = G_OBJECT_CLASS(klass); |
| |
45 |
| |
46 parent_class = g_type_class_peek_parent(klass); |
| |
47 |
| |
48 obj_class->finalize = pidgin_status_icon_theme_finalize; |
| |
49 } |
| |
50 |
| |
51 GType |
| |
52 pidgin_status_icon_theme_get_type(void) |
| |
53 { |
| |
54 static GType type = 0; |
| |
55 if (type == 0) { |
| |
56 static const GTypeInfo info = { |
| |
57 sizeof (PidginStatusIconThemeClass), |
| |
58 NULL, /* base_init */ |
| |
59 NULL, /* base_finalize */ |
| |
60 (GClassInitFunc)pidgin_status_icon_theme_class_init, /* class_init */ |
| |
61 NULL, /* class_finalize */ |
| |
62 NULL, /* class_data */ |
| |
63 sizeof (PidginStatusIconTheme), |
| |
64 0, /* n_preallocs */ |
| |
65 NULL, |
| |
66 NULL, /* value table */ |
| |
67 }; |
| |
68 type = g_type_register_static(PIDGIN_TYPE_ICON_THEME, |
| |
69 "PidginStatusIconTheme", &info, 0); |
| |
70 } |
| |
71 return type; |
| |
72 } |