Add another
svn path=/trunk/; revision=1399
This commit is contained in:
24
e-util/e-util.h
Normal file
24
e-util/e-util.h
Normal file
@ -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_ */
|
24
e-util/e-util.h-29002
Normal file
24
e-util/e-util.h-29002
Normal file
@ -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_ */
|
24
widgets/e-util.h
Normal file
24
widgets/e-util.h
Normal file
@ -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_ */
|
Reference in New Issue
Block a user