diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-05-20 00:09:11 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-05-20 01:07:21 +0800 |
commit | e67ca727d4130585f4dcf4c71fff0e52e6b6e396 (patch) | |
tree | 647d0ac71dd7548efd680d4222079388532d4199 | |
parent | 8858e3983c4321e1bc2a541c5adc327209805632 (diff) | |
download | gsoc2013-evolution-e67ca727d4130585f4dcf4c71fff0e52e6b6e396.tar gsoc2013-evolution-e67ca727d4130585f4dcf4c71fff0e52e6b6e396.tar.gz gsoc2013-evolution-e67ca727d4130585f4dcf4c71fff0e52e6b6e396.tar.bz2 gsoc2013-evolution-e67ca727d4130585f4dcf4c71fff0e52e6b6e396.tar.lz gsoc2013-evolution-e67ca727d4130585f4dcf4c71fff0e52e6b6e396.tar.xz gsoc2013-evolution-e67ca727d4130585f4dcf4c71fff0e52e6b6e396.tar.zst gsoc2013-evolution-e67ca727d4130585f4dcf4c71fff0e52e6b6e396.zip |
Rename EMailParserVCardInline to EMailParserVCard.
-rw-r--r-- | modules/vcard-inline/Makefile.am | 4 | ||||
-rw-r--r-- | modules/vcard-inline/e-mail-parser-vcard.c (renamed from modules/vcard-inline/e-mail-parser-vcard-inline.c) | 42 | ||||
-rw-r--r-- | modules/vcard-inline/e-mail-parser-vcard.h (renamed from modules/vcard-inline/e-mail-parser-vcard-inline.h) | 10 | ||||
-rw-r--r-- | modules/vcard-inline/evolution-module-vcard-inline.c | 4 |
4 files changed, 30 insertions, 30 deletions
diff --git a/modules/vcard-inline/Makefile.am b/modules/vcard-inline/Makefile.am index 16ef25da26..85e2333596 100644 --- a/modules/vcard-inline/Makefile.am +++ b/modules/vcard-inline/Makefile.am @@ -12,8 +12,8 @@ module_vcard_inline_la_CPPFLAGS = \ module_vcard_inline_la_SOURCES = \ e-mail-formatter-vcard-inline.c \ e-mail-formatter-vcard-inline.h \ - e-mail-parser-vcard-inline.c \ - e-mail-parser-vcard-inline.h \ + e-mail-parser-vcard.c \ + e-mail-parser-vcard.h \ e-mail-part-vcard.h \ evolution-module-vcard-inline.c diff --git a/modules/vcard-inline/e-mail-parser-vcard-inline.c b/modules/vcard-inline/e-mail-parser-vcard.c index 899f24bc2b..5fbc3c0dc3 100644 --- a/modules/vcard-inline/e-mail-parser-vcard-inline.c +++ b/modules/vcard-inline/e-mail-parser-vcard.c @@ -1,5 +1,5 @@ /* - * e-mail-parser-vcard-inline.c + * e-mail-parser-vcard.c * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -25,7 +25,7 @@ #include <glib/gi18n.h> #include <glib/gstdio.h> -#include "e-mail-parser-vcard-inline.h" +#include "e-mail-parser-vcard.h" #include "e-mail-part-vcard.h" #include <camel/camel.h> @@ -47,17 +47,17 @@ #define d(x) -typedef EMailParserExtension EMailParserVCardInline; -typedef EMailParserExtensionClass EMailParserVCardInlineClass; +typedef EMailParserExtension EMailParserVCard; +typedef EMailParserExtensionClass EMailParserVCardClass; -typedef EExtension EMailParserVCardInlineLoader; -typedef EExtensionClass EMailParserVCardInlineLoaderClass; +typedef EExtension EMailParserVCardLoader; +typedef EExtensionClass EMailParserVCardLoaderClass; -GType e_mail_parser_vcard_inline_get_type (void); +GType e_mail_parser_vcard_get_type (void); G_DEFINE_DYNAMIC_TYPE ( - EMailParserVCardInline, - e_mail_parser_vcard_inline, + EMailParserVCard, + e_mail_parser_vcard, E_TYPE_MAIL_PARSER_EXTENSION) static const gchar *parser_mime_types[] = { @@ -68,7 +68,7 @@ static const gchar *parser_mime_types[] = { }; static void -mail_part_vcard_inline_free (EMailPart *mail_part) +mail_part_vcard_free (EMailPart *mail_part) { EMailPartVCard *vi_part = (EMailPartVCard *) mail_part; @@ -255,7 +255,7 @@ bind_dom (EMailPartVCard *vcard_part, /* TOGGLE DISPLAY MODE BUTTON */ list = webkit_dom_element_get_elements_by_class_name ( - attachment, "org-gnome-vcard-inline-display-mode-button"); + attachment, "org-gnome-vcard-display-mode-button"); if (webkit_dom_node_list_get_length (list) != 1) return; toggle_button = WEBKIT_DOM_ELEMENT (webkit_dom_node_list_item (list, 0)); @@ -265,7 +265,7 @@ bind_dom (EMailPartVCard *vcard_part, /* SAVE TO ADDRESSBOOK BUTTON */ list = webkit_dom_element_get_elements_by_class_name ( - attachment, "org-gnome-vcard-inline-save-button"); + attachment, "org-gnome-vcard-save-button"); if (webkit_dom_node_list_get_length (list) != 1) return; save_button = WEBKIT_DOM_ELEMENT (webkit_dom_node_list_item (list, 0)); @@ -322,7 +322,7 @@ decode_vcard (EMailPartVCard *vcard_part, } static gboolean -empe_vcard_inline_parse (EMailParserExtension *extension, +empe_vcard_parse (EMailParserExtension *extension, EMailParser *parser, CamelMimePart *part, GString *part_id, @@ -334,11 +334,11 @@ empe_vcard_inline_parse (EMailParserExtension *extension, gint len; len = part_id->len; - g_string_append (part_id, ".org-gnome-vcard-inline-display"); + g_string_append (part_id, ".org-gnome-vcard-display"); vcard_part = (EMailPartVCard *) e_mail_part_subclass_new ( part, part_id->str, sizeof (EMailPartVCard), - (GFreeFunc) mail_part_vcard_inline_free); + (GFreeFunc) mail_part_vcard_free); vcard_part->parent.mime_type = camel_content_type_simple ( camel_mime_part_get_content_type (part)); vcard_part->parent.bind_func = (EMailPartDOMBindFunc) bind_dom; @@ -364,26 +364,26 @@ empe_vcard_inline_parse (EMailParserExtension *extension, } static void -e_mail_parser_vcard_inline_class_init (EMailParserExtensionClass *class) +e_mail_parser_vcard_class_init (EMailParserExtensionClass *class) { class->mime_types = parser_mime_types; class->flags = E_MAIL_PARSER_EXTENSION_INLINE_DISPOSITION; - class->parse = empe_vcard_inline_parse; + class->parse = empe_vcard_parse; } static void -e_mail_parser_vcard_inline_class_finalize (EMailParserExtensionClass *class) +e_mail_parser_vcard_class_finalize (EMailParserExtensionClass *class) { } static void -e_mail_parser_vcard_inline_init (EMailParserExtension *extension) +e_mail_parser_vcard_init (EMailParserExtension *extension) { } void -e_mail_parser_vcard_inline_type_register (GTypeModule *type_module) +e_mail_parser_vcard_type_register (GTypeModule *type_module) { - e_mail_parser_vcard_inline_register_type (type_module); + e_mail_parser_vcard_register_type (type_module); } diff --git a/modules/vcard-inline/e-mail-parser-vcard-inline.h b/modules/vcard-inline/e-mail-parser-vcard.h index 76ec5fe206..caf57f9316 100644 --- a/modules/vcard-inline/e-mail-parser-vcard-inline.h +++ b/modules/vcard-inline/e-mail-parser-vcard.h @@ -1,5 +1,5 @@ /* - * e-mail-parser-vcard-inline.h + * e-mail-parser-vcard.h * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -16,15 +16,15 @@ * */ -#ifndef E_MAIL_PARSER_VCARD_INLINE_H -#define E_MAIL_PARSER_VCARD_INLINE_H +#ifndef E_MAIL_PARSER_VCARD_H +#define E_MAIL_PARSER_VCARD_H #include <glib-object.h> G_BEGIN_DECLS -void e_mail_parser_vcard_inline_type_register (GTypeModule *type_module); +void e_mail_parser_vcard_type_register (GTypeModule *type_module); G_END_DECLS -#endif /* E_MAIL_PARSER_VCARD_INLINE_H */ +#endif /* E_MAIL_PARSER_VCARD_H */ diff --git a/modules/vcard-inline/evolution-module-vcard-inline.c b/modules/vcard-inline/evolution-module-vcard-inline.c index bb1196e865..5173833615 100644 --- a/modules/vcard-inline/evolution-module-vcard-inline.c +++ b/modules/vcard-inline/evolution-module-vcard-inline.c @@ -17,7 +17,7 @@ */ #include "e-mail-formatter-vcard-inline.h" -#include "e-mail-parser-vcard-inline.h" +#include "e-mail-parser-vcard.h" #include <gmodule.h> @@ -29,7 +29,7 @@ G_MODULE_EXPORT void e_module_load (GTypeModule *type_module) { e_mail_formatter_vcard_inline_type_register (type_module); - e_mail_parser_vcard_inline_type_register (type_module); + e_mail_parser_vcard_type_register (type_module); } G_MODULE_EXPORT void |