diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-05-20 00:14:58 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-05-20 01:07:21 +0800 |
commit | 0b4e7ec091c8bbe65dc2f2afd7da78b04da7c274 (patch) | |
tree | 1447c48550448a90af0d293848395b3a65eb1a32 | |
parent | e67ca727d4130585f4dcf4c71fff0e52e6b6e396 (diff) | |
download | gsoc2013-evolution-0b4e7ec091c8bbe65dc2f2afd7da78b04da7c274.tar gsoc2013-evolution-0b4e7ec091c8bbe65dc2f2afd7da78b04da7c274.tar.gz gsoc2013-evolution-0b4e7ec091c8bbe65dc2f2afd7da78b04da7c274.tar.bz2 gsoc2013-evolution-0b4e7ec091c8bbe65dc2f2afd7da78b04da7c274.tar.lz gsoc2013-evolution-0b4e7ec091c8bbe65dc2f2afd7da78b04da7c274.tar.xz gsoc2013-evolution-0b4e7ec091c8bbe65dc2f2afd7da78b04da7c274.tar.zst gsoc2013-evolution-0b4e7ec091c8bbe65dc2f2afd7da78b04da7c274.zip |
Rename EMailFormatterVCardInline to EMailFormatterVCard.
-rw-r--r-- | modules/vcard-inline/Makefile.am | 4 | ||||
-rw-r--r-- | modules/vcard-inline/e-mail-formatter-vcard.c (renamed from modules/vcard-inline/e-mail-formatter-vcard-inline.c) | 46 | ||||
-rw-r--r-- | modules/vcard-inline/e-mail-formatter-vcard.h (renamed from modules/vcard-inline/e-mail-formatter-vcard-inline.h) | 10 | ||||
-rw-r--r-- | modules/vcard-inline/evolution-module-vcard-inline.c | 4 |
4 files changed, 32 insertions, 32 deletions
diff --git a/modules/vcard-inline/Makefile.am b/modules/vcard-inline/Makefile.am index 85e2333596..324a7ab4fd 100644 --- a/modules/vcard-inline/Makefile.am +++ b/modules/vcard-inline/Makefile.am @@ -10,8 +10,8 @@ module_vcard_inline_la_CPPFLAGS = \ $(GTKHTML_CFLAGS) module_vcard_inline_la_SOURCES = \ - e-mail-formatter-vcard-inline.c \ - e-mail-formatter-vcard-inline.h \ + e-mail-formatter-vcard.c \ + e-mail-formatter-vcard.h \ e-mail-parser-vcard.c \ e-mail-parser-vcard.h \ e-mail-part-vcard.h \ diff --git a/modules/vcard-inline/e-mail-formatter-vcard-inline.c b/modules/vcard-inline/e-mail-formatter-vcard.c index d120481fbf..01d015f754 100644 --- a/modules/vcard-inline/e-mail-formatter-vcard-inline.c +++ b/modules/vcard-inline/e-mail-formatter-vcard.c @@ -1,5 +1,5 @@ /* - * e-mail-formatter-vcard-inline.c + * e-mail-formatter-vcard.c * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -20,7 +20,7 @@ #include <config.h> #endif -#include "e-mail-formatter-vcard-inline.h" +#include "e-mail-formatter-vcard.h" #include "e-mail-part-vcard.h" #include <glib/gi18n-lib.h> @@ -36,17 +36,17 @@ #define d(x) -typedef EMailFormatterExtension EMailFormatterVCardInline; -typedef EMailFormatterExtensionClass EMailFormatterVCardInlineClass; +typedef EMailFormatterExtension EMailFormatterVCard; +typedef EMailFormatterExtensionClass EMailFormatterVCardClass; -typedef EExtension EMailFormatterVCardInlineLoader; -typedef EExtensionClass EMailFormatterVCardInlineLoaderClass; +typedef EExtension EMailFormatterVCardLoader; +typedef EExtensionClass EMailFormatterVCardLoaderClass; -GType e_mail_formatter_vcard_inline_get_type (void); +GType e_mail_formatter_vcard_get_type (void); G_DEFINE_DYNAMIC_TYPE ( - EMailFormatterVCardInline, - e_mail_formatter_vcard_inline, + EMailFormatterVCard, + e_mail_formatter_vcard, E_TYPE_MAIL_FORMATTER_EXTENSION) static const gchar *formatter_mime_types[] = { @@ -57,12 +57,12 @@ static const gchar *formatter_mime_types[] = { }; static gboolean -emfe_vcard_inline_format (EMailFormatterExtension *extension, - EMailFormatter *formatter, - EMailFormatterContext *context, - EMailPart *part, - CamelStream *stream, - GCancellable *cancellable) +mail_formatter_vcard_format (EMailFormatterExtension *extension, + EMailFormatter *formatter, + EMailFormatterContext *context, + EMailPart *part, + CamelStream *stream, + GCancellable *cancellable) { EMailPartVCard *vcard_part; @@ -141,7 +141,7 @@ emfe_vcard_inline_format (EMailFormatterExtension *extension, str = g_strdup_printf ( "<button type=\"button\" " "name=\"set-display-mode\" " - "class=\"org-gnome-vcard-inline-display-mode-button\" " + "class=\"org-gnome-vcard-display-mode-button\" " "value=\"%d\" " "accesskey=\"%s\">%s</button>", mode, access_key, html_label); @@ -156,7 +156,7 @@ emfe_vcard_inline_format (EMailFormatterExtension *extension, str = g_strdup_printf ( "<button type=\"button\" " "name=\"save-to-addressbook\" " - "class=\"org-gnome-vcard-inline-save-button\" " + "class=\"org-gnome-vcard-save-button\" " "value=\"%s\" " "accesskey=\"%s\">%s</button><br>" "<iframe width=\"100%%\" height=\"auto\" frameborder=\"0\"" @@ -202,27 +202,27 @@ emfe_vcard_inline_format (EMailFormatterExtension *extension, } static void -e_mail_formatter_vcard_inline_class_init (EMailFormatterExtensionClass *class) +e_mail_formatter_vcard_class_init (EMailFormatterExtensionClass *class) { class->display_name = _("Addressbook Contact"); class->description = _("Display the part as an addressbook contact"); class->mime_types = formatter_mime_types; - class->format = emfe_vcard_inline_format; + class->format = mail_formatter_vcard_format; } static void -e_mail_formatter_vcard_inline_class_finalize (EMailFormatterExtensionClass *class) +e_mail_formatter_vcard_class_finalize (EMailFormatterExtensionClass *class) { } static void -e_mail_formatter_vcard_inline_init (EMailFormatterExtension *extension) +e_mail_formatter_vcard_init (EMailFormatterExtension *extension) { } void -e_mail_formatter_vcard_inline_type_register (GTypeModule *type_module) +e_mail_formatter_vcard_type_register (GTypeModule *type_module) { - e_mail_formatter_vcard_inline_register_type (type_module); + e_mail_formatter_vcard_register_type (type_module); } diff --git a/modules/vcard-inline/e-mail-formatter-vcard-inline.h b/modules/vcard-inline/e-mail-formatter-vcard.h index 1dcec839f3..260dd90591 100644 --- a/modules/vcard-inline/e-mail-formatter-vcard-inline.h +++ b/modules/vcard-inline/e-mail-formatter-vcard.h @@ -1,5 +1,5 @@ /* - * e-mail-formatter-vcard-inline.h + * e-mail-formatter-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_FORMATTER_VCARD_INLINE_H -#define E_MAIL_FORMATTER_VCARD_INLINE_H +#ifndef E_MAIL_FORMATTER_VCARD_H +#define E_MAIL_FORMATTER_VCARD_H #include <glib-object.h> G_BEGIN_DECLS -void e_mail_formatter_vcard_inline_type_register (GTypeModule *type_module); +void e_mail_formatter_vcard_type_register (GTypeModule *type_module); G_END_DECLS -#endif /* E_MAIL_FORMATTER_VCARD_INLINE_H */ +#endif /* E_MAIL_FORMATTER_VCARD_H */ diff --git a/modules/vcard-inline/evolution-module-vcard-inline.c b/modules/vcard-inline/evolution-module-vcard-inline.c index 5173833615..abf4d36c97 100644 --- a/modules/vcard-inline/evolution-module-vcard-inline.c +++ b/modules/vcard-inline/evolution-module-vcard-inline.c @@ -16,7 +16,7 @@ * */ -#include "e-mail-formatter-vcard-inline.h" +#include "e-mail-formatter-vcard.h" #include "e-mail-parser-vcard.h" #include <gmodule.h> @@ -28,7 +28,7 @@ const gchar * g_module_check_init (GModule *module); G_MODULE_EXPORT void e_module_load (GTypeModule *type_module) { - e_mail_formatter_vcard_inline_type_register (type_module); + e_mail_formatter_vcard_type_register (type_module); e_mail_parser_vcard_type_register (type_module); } |