pidgin/gtkstatus-icon-theme.c

branch
next.minor
changeset 25875
a98b16817658
parent 23973
189295d2ee8e
child 39548
dfd989c8236e
equal deleted inserted replaced
25874:966325e48356 25875:a98b16817658
16 * GNU General Public License for more details. 16 * GNU General Public License for more details.
17 * 17 *
18 * You should have received a copy of the GNU General Public License 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 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 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
21 *
22 */ 21 */
23 22
24 #include "gtkstatus-icon-theme.h" 23 #include "gtkstatus-icon-theme.h"
25 24
26 /****************************************************************************** 25 /******************************************************************************
27 * Globals 26 * Globals
28 *****************************************************************************/ 27 *****************************************************************************/
28
29 static GObjectClass *parent_class = NULL; 29 static GObjectClass *parent_class = NULL;
30 30
31 /****************************************************************************** 31 /******************************************************************************
32 * GObject Stuff 32 * GObject Stuff
33 *****************************************************************************/ 33 *****************************************************************************/
34 34
35 static void 35 static void
36 pidgin_status_icon_theme_finalize(GObject *obj) 36 pidgin_status_icon_theme_finalize(GObject *obj)
37 { 37 {
38 parent_class->finalize(obj); 38 parent_class->finalize(obj);
39 } 39 }
40 40
43 { 43 {
44 GObjectClass *obj_class = G_OBJECT_CLASS(klass); 44 GObjectClass *obj_class = G_OBJECT_CLASS(klass);
45 45
46 parent_class = g_type_class_peek_parent(klass); 46 parent_class = g_type_class_peek_parent(klass);
47 47
48 obj_class->finalize = pidgin_status_icon_theme_finalize; 48 obj_class->finalize = pidgin_status_icon_theme_finalize;
49 } 49 }
50 50
51 GType 51 GType
52 pidgin_status_icon_theme_get_type(void) 52 pidgin_status_icon_theme_get_type(void)
53 { 53 {
54 static GType type = 0; 54 static GType type = 0;
55 if (type == 0) { 55 if (type == 0) {
56 static const GTypeInfo info = { 56 static const GTypeInfo info = {
57 sizeof (PidginStatusIconThemeClass), 57 sizeof (PidginStatusIconThemeClass),
58 NULL, /* base_init */ 58 NULL, /* base_init */
59 NULL, /* base_finalize */ 59 NULL, /* base_finalize */
60 (GClassInitFunc)pidgin_status_icon_theme_class_init, /* class_init */ 60 (GClassInitFunc)pidgin_status_icon_theme_class_init, /* class_init */
61 NULL, /* class_finalize */ 61 NULL, /* class_finalize */
62 NULL, /* class_data */ 62 NULL, /* class_data */
63 sizeof (PidginStatusIconTheme), 63 sizeof (PidginStatusIconTheme),
64 0, /* n_preallocs */ 64 0, /* n_preallocs */
65 NULL, 65 NULL,
66 NULL, /* value table */ 66 NULL, /* value table */
67 }; 67 };
68 type = g_type_register_static(PIDGIN_TYPE_ICON_THEME, 68 type = g_type_register_static(PIDGIN_TYPE_ICON_THEME,
69 "PidginStatusIconTheme", 69 "PidginStatusIconTheme", &info, 0);
70 &info, 0); 70 }
71 } 71 return type;
72 return type;
73 } 72 }

mercurial