[evolution] EMailFormatterHeader: Clarify the flags type.



commit 49adb381a6d348c90648b69a803d22be82b90ecd
Author: Matthew Barnes <mbarnes redhat com>
Date:   Fri Dec 7 13:26:50 2012 -0500

    EMailFormatterHeader: Clarify the flags type.
    
    We define the header flags as an enum type, so use the enum type.

 em-format/e-mail-formatter.c |    4 ++--
 em-format/e-mail-formatter.h |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/em-format/e-mail-formatter.c b/em-format/e-mail-formatter.c
index c3a2085..5946906 100644
--- a/em-format/e-mail-formatter.c
+++ b/em-format/e-mail-formatter.c
@@ -1435,7 +1435,7 @@ e_mail_formatter_set_default_headers (EMailFormatter *formatter)
  * @formatter:
  * @name: The name of the header, as it will appear during output.
  * @value: Value of the header. Can be %NULL.
- * @flags: EM_FORMAT_HEAD_* defines to control display attributes.
+ * @flags: a set of #EMailFormatterHeaderFlags to control display attributes.
  *
  * Add a specific header to show.  If any headers are set, they will
  * be displayed in the order set by this function.  Certain known
@@ -1446,7 +1446,7 @@ void
 e_mail_formatter_add_header (EMailFormatter *formatter,
                              const gchar *name,
                              const gchar *value,
-                             guint32 flags)
+                             EMailFormatterHeaderFlags flags)
 {
 	EMailFormatterHeader *h;
 
diff --git a/em-format/e-mail-formatter.h b/em-format/e-mail-formatter.h
index 6d344ad..e632b7a 100644
--- a/em-format/e-mail-formatter.h
+++ b/em-format/e-mail-formatter.h
@@ -83,7 +83,7 @@ typedef struct _EMailFormatterHeader EMailFormatterHeader;
 typedef struct _EMailFormatterContext EMailFormatterContext;
 
 struct _EMailFormatterHeader {
-	guint32 flags;		/* E_MAIL_FORMATTER_HEADER_FLAG_ * */
+	EMailFormatterHeaderFlags flags;
 	gchar *name;
 	gchar *value;
 };
@@ -239,7 +239,7 @@ void		e_mail_formatter_set_default_headers
 void		e_mail_formatter_add_header	(EMailFormatter *formatter,
 						 const gchar *name,
 						 const gchar *value,
-						 guint32 flags);
+						 EMailFormatterHeaderFlags flags);
 
 void		e_mail_formatter_add_header_struct
 						(EMailFormatter *formatter,



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