[evolution] Rename EMailFormatterVCardInline to EMailFormatterVCard.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Rename EMailFormatterVCardInline to EMailFormatterVCard.
- Date: Sun, 19 May 2013 17:08:07 +0000 (UTC)
commit 0b4e7ec091c8bbe65dc2f2afd7da78b04da7c274
Author: Matthew Barnes <mbarnes redhat com>
Date: Sun May 19 12:14:58 2013 -0400
Rename EMailFormatterVCardInline to EMailFormatterVCard.
modules/vcard-inline/Makefile.am | 4 +-
...ter-vcard-inline.c => e-mail-formatter-vcard.c} | 46 ++++++++++----------
...ter-vcard-inline.h => e-mail-formatter-vcard.h} | 10 ++--
.../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 85e2333..324a7ab 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
similarity index 79%
rename from modules/vcard-inline/e-mail-formatter-vcard-inline.c
rename to modules/vcard-inline/e-mail-formatter-vcard.c
index d120481..01d015f 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
similarity index 75%
rename from modules/vcard-inline/e-mail-formatter-vcard-inline.h
rename to modules/vcard-inline/e-mail-formatter-vcard.h
index 1dcec83..260dd90 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 5173833..abf4d36 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]