aboutsummaryrefslogtreecommitdiff
path: root/src/libcustomindicator/custom-indicator-enum-types.c.in
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-22 15:06:13 -0500
committerTed Gould <ted@canonical.com>2009-10-22 15:06:13 -0500
commit20d116ae0d74559cd5f30fe4f1bff08ed6378176 (patch)
tree0f462df1fa68bf689036afb5b413064a7bfb8a3a /src/libcustomindicator/custom-indicator-enum-types.c.in
parent664bc74b6f0b3eb6ca30539628e2350ed3a2e20c (diff)
parent72815e195b42b8c4ed94f09af4b86a0d94393e5e (diff)
downloadayatana-indicator-application-20d116ae0d74559cd5f30fe4f1bff08ed6378176.tar.gz
ayatana-indicator-application-20d116ae0d74559cd5f30fe4f1bff08ed6378176.tar.bz2
ayatana-indicator-application-20d116ae0d74559cd5f30fe4f1bff08ed6378176.zip
Branch building up the interface for the library.
Diffstat (limited to 'src/libcustomindicator/custom-indicator-enum-types.c.in')
-rw-r--r--src/libcustomindicator/custom-indicator-enum-types.c.in33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/libcustomindicator/custom-indicator-enum-types.c.in b/src/libcustomindicator/custom-indicator-enum-types.c.in
new file mode 100644
index 0000000..51512f6
--- /dev/null
+++ b/src/libcustomindicator/custom-indicator-enum-types.c.in
@@ -0,0 +1,33 @@
+/*** BEGIN file-header ***/
+#include "libcustomindicator/custom-indicator-enum-types.h"
+
+/*** END file-header ***/
+
+/*** BEGIN file-production ***/
+#include "@filename@"
+/*** END file-production ***/
+
+/*** BEGIN value-header ***/
+GType
+@enum_name@_get_type (void)
+{
+ static GType etype = 0;
+ if (G_UNLIKELY(etype == 0)) {
+ static const G@Type@Value values[] = {
+/*** END value-header ***/
+
+/*** BEGIN value-production ***/
+ { @VALUENAME@, "@VALUENAME@", "@valuenick@" },
+/*** END value-production ***/
+
+/*** BEGIN value-tail ***/
+ { 0, NULL, NULL}
+ };
+
+ etype = g_@type@_register_static (g_intern_static_string("@EnumName@"), values);
+ }
+
+ return etype;
+}
+
+/*** END value-tail ***/