diff options
author | Ted Gould <ted@canonical.com> | 2009-10-16 15:36:22 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-10-16 15:36:22 -0500 |
commit | 227666e9b4a1d928875513acfa8f019497a4261f (patch) | |
tree | 3aee3d9693a6f612e019acb27936ee0b985e874c /src/libcustomindicator/custom-indicator-enum-types.c.in | |
parent | 664bc74b6f0b3eb6ca30539628e2350ed3a2e20c (diff) | |
parent | 50e28fd237a7de7e3f28332711dc01c7fe8e4dbd (diff) | |
download | libayatana-appindicator-227666e9b4a1d928875513acfa8f019497a4261f.tar.gz libayatana-appindicator-227666e9b4a1d928875513acfa8f019497a4261f.tar.bz2 libayatana-appindicator-227666e9b4a1d928875513acfa8f019497a4261f.zip |
Merging in the library interface.
Diffstat (limited to 'src/libcustomindicator/custom-indicator-enum-types.c.in')
-rw-r--r-- | src/libcustomindicator/custom-indicator-enum-types.c.in | 33 |
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..3f97040 --- /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 +@EnumName@_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 ***/ |