23697
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
1 /*
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
2 * Status Icon Themes for Pidgin
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
3 *
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
4 * Pidgin is the legal property of its developers, whose names are too numerous
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
5 * to list here. Please refer to the COPYRIGHT file distributed with this
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
6 * source distribution.
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
7 *
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
8 * This program is free software; you can redistribute it and/or modify
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
9 * it under the terms of the GNU General Public License as published by
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
10 * the Free Software Foundation; either version 2 of the License, or
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
11 * (at your option) any later version.
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
12 *
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
13 * This program is distributed in the hope that it will be useful,
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
16 * GNU General Public License for more details.
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
17 *
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
18 * You should have received a copy of the GNU General Public License
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
19 * along with this program; if not, write to the Free Software
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
21 */
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
22
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
23 #include "gtkstatus-icon-theme.h"
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
24
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
25 /******************************************************************************
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
26 * Globals
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
27 *****************************************************************************/
|
25402
|
28
|
23697
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
29 static GObjectClass *parent_class = NULL;
|
23703
1a4417138a8f
clean up formatting, and added render settings for the names/markup on the blist
Justin Rodriguez <ffdragon@soc.pidgin.im>
diff
changeset
|
30
|
23697
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
31 /******************************************************************************
|
25402
|
32 * GObject Stuff
|
23697
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
33 *****************************************************************************/
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
34
|
25402
|
35 static void
|
23703
1a4417138a8f
clean up formatting, and added render settings for the names/markup on the blist
Justin Rodriguez <ffdragon@soc.pidgin.im>
diff
changeset
|
36 pidgin_status_icon_theme_finalize(GObject *obj)
|
23697
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
37 {
|
23703
1a4417138a8f
clean up formatting, and added render settings for the names/markup on the blist
Justin Rodriguez <ffdragon@soc.pidgin.im>
diff
changeset
|
38 parent_class->finalize(obj);
|
23697
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
39 }
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
40
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
41 static void
|
23703
1a4417138a8f
clean up formatting, and added render settings for the names/markup on the blist
Justin Rodriguez <ffdragon@soc.pidgin.im>
diff
changeset
|
42 pidgin_status_icon_theme_class_init(PidginStatusIconThemeClass *klass)
|
23697
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
43 {
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
44 GObjectClass *obj_class = G_OBJECT_CLASS(klass);
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
45
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
46 parent_class = g_type_class_peek_parent(klass);
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
47
|
25402
|
48 obj_class->finalize = pidgin_status_icon_theme_finalize;
|
23697
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
49 }
|
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
50
|
25402
|
51 GType
|
23703
1a4417138a8f
clean up formatting, and added render settings for the names/markup on the blist
Justin Rodriguez <ffdragon@soc.pidgin.im>
diff
changeset
|
52 pidgin_status_icon_theme_get_type(void)
|
23697
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
53 {
|
25402
|
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;
|
23697
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
72 }
|