From fa93d70ade2f492bb46690e0bb86a30c432bb043 Mon Sep 17 00:00:00 2001 From: Arturo Espinosa Date: Wed, 17 Nov 1999 18:51:45 +0000 Subject: Add another svn path=/trunk/; revision=1399 --- e-util/e-util.h | 24 ++++++++++++++++++++++++ e-util/e-util.h-29002 | 24 ++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 e-util/e-util.h create mode 100644 e-util/e-util.h-29002 (limited to 'e-util') diff --git a/e-util/e-util.h b/e-util/e-util.h new file mode 100644 index 0000000000..ad4d754770 --- /dev/null +++ b/e-util/e-util.h @@ -0,0 +1,24 @@ +#ifndef _E_UTIL_H_ +#define _E_UTIL_H_ + +#define E_MAKE_TYPE(l,str,t,ci,i,parent) \ +GtkType l##_get_type(void)\ +{\ + static GtkType type = 0;\ + if (!type){\ + GtkTypeInfo info = {\ + str,\ + sizeof (t),\ + sizeof (t##Class),\ + (GtkClassInitFunc) ci,\ + (GtkObjectInitFunc) i,\ + NULL, /* reserved 1 */\ + NULL, /* reserved 2 */\ + (GtkClassInitFunc) NULL\ + };\ + type = gtk_type_unique (parent, &info);\ + }\ + return type;\ +}\ + +#endif /* _E_UTIL_H_ */ diff --git a/e-util/e-util.h-29002 b/e-util/e-util.h-29002 new file mode 100644 index 0000000000..ad4d754770 --- /dev/null +++ b/e-util/e-util.h-29002 @@ -0,0 +1,24 @@ +#ifndef _E_UTIL_H_ +#define _E_UTIL_H_ + +#define E_MAKE_TYPE(l,str,t,ci,i,parent) \ +GtkType l##_get_type(void)\ +{\ + static GtkType type = 0;\ + if (!type){\ + GtkTypeInfo info = {\ + str,\ + sizeof (t),\ + sizeof (t##Class),\ + (GtkClassInitFunc) ci,\ + (GtkObjectInitFunc) i,\ + NULL, /* reserved 1 */\ + NULL, /* reserved 2 */\ + (GtkClassInitFunc) NULL\ + };\ + type = gtk_type_unique (parent, &info);\ + }\ + return type;\ +}\ + +#endif /* _E_UTIL_H_ */ -- cgit v1.2.3