]> mj.ucw.cz Git - moe.git/blob - mop/template/.kde/share/apps/kdevcppsupport/newclass/gtk_source
Box: Let the 32-bit version refuse to run on 64-bit kernels
[moe.git] / mop / template / .kde / share / apps / kdevcppsupport / newclass / gtk_source
1 #include "$HEADER$"
2
3 $CLASSNAME$* $CLASSNAME$_new(void)
4 {
5     $CLASSNAME$* self;
6     self = g_new($CLASSNAME$, 1);
7     if(NULL != self)
8     {
9         if(!$CLASSNAME$_init(self))
10         {
11             g_free(self);
12             self = NULL;
13         }
14     }
15     return self;
16 }
17
18 void $CLASSNAME$_delete($CLASSNAME$* self)
19 {
20     g_return_if_fail(NULL != self);
21     $CLASSNAME$_end(self);
22     g_free(self);
23 }
24
25 gboolean $CLASSNAME$_init($CLASSNAME$* self)
26 {
27     /* TODO: put init code here */
28
29     return TRUE;
30 }
31
32 void $CLASSNAME$_end($CLASSNAME$* self)
33 {
34     /* TODO: put deinit code here */
35 }