]} * This file is part of ${2:} * * Copyright (C) $<3: import datetime; return str(datetime.date.today().year)> - $<4: import pwd, os try: return pwd.getpwuid(os.getuid()).pw_gecos.split(',')[0] except KeyError: return '' > * * ${2} is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * ${2} is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with ${2}; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301 USA */ $0]]> gpl GPL License ]} * This file is part of ${2:} * * Copyright (C) $<3: import datetime; return str(datetime.date.today().year)> - $<4: import pwd, os try: return pwd.getpwuid(os.getuid()).pw_gecos.split(',')[0] except KeyError: return '' > * * ${2} is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * ${2} is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ $0]]> lgpl LGPL License do do .. while for for loop while while loop if if elif else if else else $0]]> Inc #include <..> inc #include ".." main main struct struct #endif period]]> td typedef #define $<[1]: return up_str >_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE((object), $<[1]: return type_str >, $<[1]: return camel_str >Private)) struct _$<[1]: return camel_str >Private { }; G_DEFINE_TYPE ($<[1]: return camel_str >, $<[1]: return low_str >, ${2:G_TYPE_OBJECT}) static void $<[1]: return low_str>_finalize (GObject *object) { G_OBJECT_CLASS ($<[1]: return low_str >_parent_class)->finalize (object); } static void $<[1]: return low_str >_class_init ($<[1]: return camel_str >Class *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = $<[1]: return low_str >_finalize; g_type_class_add_private (object_class, sizeof ($<[1]: return camel_str >Private)); } static void $<[1]: return low_str >_init ($<[1]: return camel_str> *self) { self->priv = $<[1]: return up_str >_GET_PRIVATE (self); } $<[1]: return camel_str > * $<[1]: return low_str >_new () { return g_object_new ($<[1]: return type_str >, NULL); }]]> gobject GObject template /* Default implementation */ static const gchar * $<[1]: return low_str>_example_method_default ($<[1]: return camel_str > *self) { g_return_val_if_reached (NULL); } static void $<[1]: return low_str>_init ($<[1]: return camel_str >Iface *iface) { static gboolean initialized = FALSE; iface->example_method = $<[1]: return low_str>_example_method_default; if (!initialized) { initialized = TRUE; } } /* * This is an method example for an interface */ const gchar * $<[1]: return low_str>_example_method ($<[1]: return camel_str > *self) { g_return_val_if_fail ($<[1]: return up_str> (self), NULL); return $<[1]: return up_str>_GET_INTERFACE (self)->example_method (self); } GType $<[1]: return low_str>_get_type () { static GType $<[1]: return low_str>_type_id = 0; if (!$<[1]: return low_str>_type_id) { static const GTypeInfo g_define_type_info = { sizeof ($<[1]: return camel_str >Iface), (GBaseInitFunc) $<[1]: return low_str>_init, NULL, NULL, NULL, NULL, 0, 0, NULL }; $<[1]: return low_str>_type_id = g_type_register_static (G_TYPE_INTERFACE, "$<[1]: return camel_str>", &g_define_type_info, 0); } return $<[1]: return low_str>_type_id; }]]> ginterface GObject interface