[Kazehakase-cvs] CVS update: kazehakase/src/utils

Back to archive index

Hiroyuki Ikezoe ikezo****@users*****
Sat Dec 2 22:07:08 JST 2006


Index: kazehakase/src/utils/gobject-utils.h
diff -u kazehakase/src/utils/gobject-utils.h:1.4 kazehakase/src/utils/gobject-utils.h:1.5
--- kazehakase/src/utils/gobject-utils.h:1.4	Sun Jan 22 10:26:08 2006
+++ kazehakase/src/utils/gobject-utils.h	Sat Dec  2 22:07:08 2006
@@ -1,7 +1,7 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 
 /*
- *  Copyright (C) 2002  Ricardo Fern.AŽández Pascual
+ *  Copyright (C) 2002  Ricardo Fern.A??ndez Pascual
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -25,65 +25,6 @@
 #ifndef __GOBJECT_UTILS_H__
 #define __GOBJECT_UTILS_H__
 
-#define KZ_OBJECT_GET_TYPE(l,str,t,ci,i,parent) \
-GType l##_get_type(void)\
-{\
-	static GType type = 0;				\
-	if (!type) {					\
-		static GTypeInfo const object_info = {	\
-			sizeof (t##Class),		\
-							\
-			(GBaseInitFunc) NULL,		\
-			(GBaseFinalizeFunc) NULL,	\
-							\
-			(GClassInitFunc) ci,		\
-			(GClassFinalizeFunc) NULL,	\
-			NULL,	/* class_data */	\
-							\
-			sizeof (t),			\
-			0,	/* n_preallocs */	\
-			(GInstanceInitFunc) i,		\
-		};					\
-		type = g_type_register_static (parent, str, &object_info, (GTypeFlags)0);	\
-	}						\
-	return type;					\
-}
-
-#define KZ_OBJECT_GET_TYPE_IFACE(l,str,t,ci,i,parent,ii,iparent) \
-GType l##_get_type(void)\
-{\
-	static GType type = 0;				\
-	if (!type) {					\
-		static GTypeInfo const object_info = {	\
-			sizeof (t##Class),		\
-							\
-			(GBaseInitFunc) NULL,		\
-			(GBaseFinalizeFunc) NULL,	\
-							\
-			(GClassInitFunc) ci,		\
-			(GClassFinalizeFunc) NULL,	\
-			NULL,	/* class_data */	\
-							\
-			sizeof (t),			\
-			0,	/* n_preallocs */	\
-			(GInstanceInitFunc) i,		\
-		};					\
-							\
-		static const GInterfaceInfo iface_info = {	\
-			(GInterfaceInitFunc) ii,	\
-			NULL,				\
-			NULL				\
-		};					\
-							\
-		type = g_type_register_static (parent, str, &object_info, (GTypeFlags)0);	\
-							\
-		g_type_add_interface_static (type,	\
-					     iparent,	\
-					     &iface_info);	\
-	}						\
-	return type;					\
-}
-
 #define KZ_BOXED_GET_TYPE(l,str,c,f)			\
 GType l##_get_type(void)				\
 {							\


More information about the Kazehakase-cvs mailing list
Back to archive index