diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 114a878c64ce6f8223cfd22d76a20eb16d177e5e (patch) | |
tree | acaf47eb0fa12142d3896416a69e74cbf5a72242 /languages/cpp/newclass_templates/gtk_source | |
download | tdevelop-114a878c64ce6f8223cfd22d76a20eb16d177e5e.tar.gz tdevelop-114a878c64ce6f8223cfd22d76a20eb16d177e5e.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/cpp/newclass_templates/gtk_source')
-rw-r--r-- | languages/cpp/newclass_templates/gtk_source | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/languages/cpp/newclass_templates/gtk_source b/languages/cpp/newclass_templates/gtk_source new file mode 100644 index 00000000..aa5f05ea --- /dev/null +++ b/languages/cpp/newclass_templates/gtk_source @@ -0,0 +1,35 @@ +#include "$HEADER$" + +$CLASSNAME$* $CLASSNAME$_new(void) +{ + $CLASSNAME$* self; + self = g_new($CLASSNAME$, 1); + if(NULL != self) + { + if(!$CLASSNAME$_init(self)) + { + g_free(self); + self = NULL; + } + } + return self; +} + +void $CLASSNAME$_delete($CLASSNAME$* self) +{ + g_return_if_fail(NULL != self); + $CLASSNAME$_end(self); + g_free(self); +} + +gboolean $CLASSNAME$_init($CLASSNAME$* self) +{ + /* TODO: put init code here */ + + return TRUE; +} + +void $CLASSNAME$_end($CLASSNAME$* self) +{ + /* TODO: put deinit code here */ +} |