| 22 */ |
22 */ |
| 23 |
23 |
| 24 #include "gtkstatus-icon-theme.h" |
24 #include "gtkstatus-icon-theme.h" |
| 25 |
25 |
| 26 /****************************************************************************** |
26 /****************************************************************************** |
| 27 * Structs |
|
| 28 *****************************************************************************/ |
|
| 29 /****************************************************************************** |
|
| 30 * Globals |
27 * Globals |
| 31 *****************************************************************************/ |
28 *****************************************************************************/ |
| 32 static GObjectClass *parent_class = NULL; |
29 static GObjectClass *parent_class = NULL; |
| 33 /****************************************************************************** |
30 |
| 34 * Enums |
|
| 35 *****************************************************************************/ |
|
| 36 /****************************************************************************** |
31 /****************************************************************************** |
| 37 * GObject Stuff |
32 * GObject Stuff |
| 38 *****************************************************************************/ |
33 *****************************************************************************/ |
| 39 |
34 |
| 40 static void |
35 static void |
| 41 pidgin_status_icon_theme_finalize (GObject *obj) |
36 pidgin_status_icon_theme_finalize(GObject *obj) |
| 42 { |
37 { |
| 43 parent_class->finalize (obj); |
38 parent_class->finalize(obj); |
| 44 } |
39 } |
| 45 |
40 |
| 46 static void |
41 static void |
| 47 pidgin_status_icon_theme_class_init (PidginStatusIconThemeClass *klass) |
42 pidgin_status_icon_theme_class_init(PidginStatusIconThemeClass *klass) |
| 48 { |
43 { |
| 49 GObjectClass *obj_class = G_OBJECT_CLASS(klass); |
44 GObjectClass *obj_class = G_OBJECT_CLASS(klass); |
| 50 |
45 |
| 51 parent_class = g_type_class_peek_parent(klass); |
46 parent_class = g_type_class_peek_parent(klass); |
| 52 |
47 |
| 53 obj_class->finalize = pidgin_status_icon_theme_finalize; |
48 obj_class->finalize = pidgin_status_icon_theme_finalize; |
| 54 } |
49 } |
| 55 |
50 |
| 56 GType |
51 GType |
| 57 pidgin_status_icon_theme_get_type (void) |
52 pidgin_status_icon_theme_get_type(void) |
| 58 { |
53 { |
| 59 static GType type = 0; |
54 static GType type = 0; |
| 60 if (type == 0) { |
55 if (type == 0) { |
| 61 static const GTypeInfo info = { |
56 static const GTypeInfo info = { |
| 62 sizeof (PidginStatusIconThemeClass), |
57 sizeof (PidginStatusIconThemeClass), |
| 68 sizeof (PidginStatusIconTheme), |
63 sizeof (PidginStatusIconTheme), |
| 69 0, /* n_preallocs */ |
64 0, /* n_preallocs */ |
| 70 NULL, |
65 NULL, |
| 71 NULL, /* value table */ |
66 NULL, /* value table */ |
| 72 }; |
67 }; |
| 73 type = g_type_register_static (PIDGIN_TYPE_ICON_THEME, |
68 type = g_type_register_static(PIDGIN_TYPE_ICON_THEME, |
| 74 "PidginStatusIconTheme", |
69 "PidginStatusIconTheme", |
| 75 &info, 0); |
70 &info, 0); |
| 76 } |
71 } |
| 77 return type; |
72 return type; |
| 78 } |
73 } |