[evolution-ews] Use @ENUMPREFIX@ in enumtypes.h.template



commit be945cae8a82d28aadb7bae507c06f3d4c6725ad
Author: Milan Crha <mcrha redhat com>
Date:   Fri Apr 12 08:46:31 2013 +0200

    Use @ENUMPREFIX@ in enumtypes.h.template
    
    This way the TYPE define does not have hardcoded prefix, thus the same
    template can be used to generate E_TYPE_... and CAMEL_TYPE_... enums.

 enumtypes.h.template        |    2 +-
 src/camel/camel-ews-store.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/enumtypes.h.template b/enumtypes.h.template
index e1ff4b3..e421edd 100644
--- a/enumtypes.h.template
+++ b/enumtypes.h.template
@@ -12,7 +12,7 @@ G_BEGIN_DECLS
 /*** END file-production ***/
 
 /*** BEGIN enumeration-production ***/
-#define E_TYPE_ ENUMSHORT@     (@enum_name _get_type())
+#define @ENUMPREFIX _TYPE_@ENUMSHORT@  (@enum_name _get_type())
 GType @enum_name _get_type     (void) G_GNUC_CONST;
 
 /*** END enumeration-production ***/
diff --git a/src/camel/camel-ews-store.c b/src/camel/camel-ews-store.c
index 9f9801f..6c9ce3a 100644
--- a/src/camel/camel-ews-store.c
+++ b/src/camel/camel-ews-store.c
@@ -2874,7 +2874,7 @@ camel_ews_store_class_init (CamelEwsStoreClass *class)
                        "ooo-alert-state",
                        "Out of Office Alert State",
                        "The state of the Out of Office Alert",
-                       E_TYPE_EWS_STORE_OOO_ALERT_STATE,
+                       CAMEL_TYPE_EWS_STORE_OOO_ALERT_STATE,
                        CAMEL_EWS_STORE_OOO_ALERT_STATE_UNKNOWN,
                        G_PARAM_READWRITE |
                        G_PARAM_CONSTRUCT |


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]