Use conventional style for empty string check
[pidgin-git.git] / pidgin / gtkstatus-icon-theme.c
blob590fc4c743898aa1cdf0674c141a0803bbe0339e
1 /*
2 * Status Icon Themes for Pidgin
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.
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.
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.
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
23 #include "gtkstatus-icon-theme.h"
25 /******************************************************************************
26 * Globals
27 *****************************************************************************/
29 static GObjectClass *parent_class = NULL;
31 /******************************************************************************
32 * GObject Stuff
33 *****************************************************************************/
35 static void
36 pidgin_status_icon_theme_finalize(GObject *obj)
38 parent_class->finalize(obj);
41 static void
42 pidgin_status_icon_theme_class_init(PidginStatusIconThemeClass *klass)
44 GObjectClass *obj_class = G_OBJECT_CLASS(klass);
46 parent_class = g_type_class_peek_parent(klass);
48 obj_class->finalize = pidgin_status_icon_theme_finalize;
51 GType
52 pidgin_status_icon_theme_get_type(void)
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 */
68 type = g_type_register_static(PIDGIN_TYPE_ICON_THEME,
69 "PidginStatusIconTheme", &info, 0);
71 return type;