diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-05-17 01:06:56 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-05-20 01:07:20 +0800 |
commit | cd5a55f9812643109be6c2b0ed5d8f8ce655a4a9 (patch) | |
tree | 271b673b6e311d5cb44acdd0b6c1d1830aa6982e /modules/itip-formatter | |
parent | f6f11a1da2dfa2c7616cd18b36a44fefd66f0c75 (diff) | |
download | gsoc2013-evolution-cd5a55f9812643109be6c2b0ed5d8f8ce655a4a9.tar.gz gsoc2013-evolution-cd5a55f9812643109be6c2b0ed5d8f8ce655a4a9.tar.zst gsoc2013-evolution-cd5a55f9812643109be6c2b0ed5d8f8ce655a4a9.zip |
em-format cleanups.
Diffstat (limited to 'modules/itip-formatter')
-rw-r--r-- | modules/itip-formatter/e-mail-formatter-itip.c | 3 | ||||
-rw-r--r-- | modules/itip-formatter/e-mail-part-itip.h | 11 |
2 files changed, 8 insertions, 6 deletions
diff --git a/modules/itip-formatter/e-mail-formatter-itip.c b/modules/itip-formatter/e-mail-formatter-itip.c index a97e70d0bd..02ae152718 100644 --- a/modules/itip-formatter/e-mail-formatter-itip.c +++ b/modules/itip-formatter/e-mail-formatter-itip.c @@ -62,7 +62,8 @@ emfe_itip_format (EMailFormatterExtension *extension, GString *buffer; EMailPartItip *itip_part; - g_return_val_if_fail (E_MAIL_PART_IS (part, EMailPartItip), FALSE); + g_return_val_if_fail (E_IS_MAIL_PART_ITIP (part), FALSE); + itip_part = (EMailPartItip *) part; if (context->mode == E_MAIL_FORMATTER_MODE_PRINTING) { diff --git a/modules/itip-formatter/e-mail-part-itip.h b/modules/itip-formatter/e-mail-part-itip.h index ac56234f23..78004bca96 100644 --- a/modules/itip-formatter/e-mail-part-itip.h +++ b/modules/itip-formatter/e-mail-part-itip.h @@ -1,4 +1,6 @@ /* + * e-mail-part-itip.h + * * This program 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 @@ -17,10 +19,6 @@ #ifndef E_MAIL_PART_ITIP_H #define E_MAIL_PART_ITIP_H -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <libecal/libecal.h> #include <libebackend/libebackend.h> @@ -28,7 +26,10 @@ #include "itip-view.h" -#define E_MAIL_PART_ITIP(p) ((EMailPartItip *) p) +#define E_MAIL_PART_ITIP(part) \ + ((EMailPartItip *) part) +#define E_IS_MAIL_PART_ITIP(part) \ + (E_MAIL_PART_IS (part, EMailPartItip)) G_BEGIN_DECLS |