comparison pidgin/gtkstatus-icon-theme.c @ 25402:0c7b74fc558e

Lots of minor whitespace and comment changes: * Removed stray whitespace * Changed a few places that used space indentation to use tabs * Changed some places that used tabs for alignment in the middle of a line of code to use spaces * Use two tabs to indent code that spans more than one line instead of a few tabs and a few spaces in an effort to align the subsequent lines with the initial one * Changed "#ifdef _BLAH_H" to "#ifdef BLAH_H" because an underscore followed by a capital letter is reserved for use by the compiler and system libraries. I also changed the path to the sound theme.xml file from root_node = xmlnode_from_file(dir, "theme.xml", "sound themes", "sound-loader"); to root_node = xmlnode_from_file(dir, "theme.xml", "sound themes", "sound-theme-loader");
author Mark Doliner <mark@kingant.net>
date Sun, 25 Jan 2009 22:55:23 +0000
parents 1a4417138a8f
children
comparison
equal deleted inserted replaced
25401:3d8c53f3108e 25402:0c7b74fc558e
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 }