aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/e-util.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/widgets/e-util.h b/widgets/e-util.h
new file mode 100644
index 0000000000..ad4d754770
--- /dev/null
+++ b/widgets/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_ */