diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-05-20 00:01:14 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-05-20 01:07:21 +0800 |
commit | 4b80da91e84275388e861923eca75e608d6091cc (patch) | |
tree | 02c921b5a97204ef12c5e43fe71fd18a33cd24cc /modules | |
parent | 8f2969b5fd7ba7c18d3b5762508e70ea1a39a13e (diff) | |
download | gsoc2013-evolution-4b80da91e84275388e861923eca75e608d6091cc.tar.gz gsoc2013-evolution-4b80da91e84275388e861923eca75e608d6091cc.tar.zst gsoc2013-evolution-4b80da91e84275388e861923eca75e608d6091cc.zip |
Rename EMailFormatterAudioInline to EMailFormatterAudio.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/audio-inline/Makefile.am | 4 | ||||
-rw-r--r-- | modules/audio-inline/e-mail-formatter-audio.c (renamed from modules/audio-inline/e-mail-formatter-audio-inline.c) | 66 | ||||
-rw-r--r-- | modules/audio-inline/e-mail-formatter-audio.h (renamed from modules/audio-inline/e-mail-formatter-audio-inline.h) | 10 | ||||
-rw-r--r-- | modules/audio-inline/evolution-module-audio-inline.c | 4 |
4 files changed, 42 insertions, 42 deletions
diff --git a/modules/audio-inline/Makefile.am b/modules/audio-inline/Makefile.am index 49d8ab10f0..b53c2913fd 100644 --- a/modules/audio-inline/Makefile.am +++ b/modules/audio-inline/Makefile.am @@ -11,8 +11,8 @@ module_audio_inline_la_CPPFLAGS = \ $(GSTREAMER_CFLAGS) module_audio_inline_la_SOURCES = \ - e-mail-formatter-audio-inline.c \ - e-mail-formatter-audio-inline.h \ + e-mail-formatter-audio.c \ + e-mail-formatter-audio.h \ e-mail-parser-audio.c \ e-mail-parser-audio.h \ e-mail-part-audio.h \ diff --git a/modules/audio-inline/e-mail-formatter-audio-inline.c b/modules/audio-inline/e-mail-formatter-audio.c index 760dc08ce6..b700651221 100644 --- a/modules/audio-inline/e-mail-formatter-audio-inline.c +++ b/modules/audio-inline/e-mail-formatter-audio.c @@ -1,5 +1,5 @@ /* - * e-mail-formatter-audio-inline.c + * e-mail-formatter-audio.c * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -16,7 +16,7 @@ * */ -#include "e-mail-formatter-audio-inline.h" +#include "e-mail-formatter-audio.h" #ifdef HAVE_CONFIG_H #include <config.h> @@ -36,21 +36,21 @@ #define d(x) -typedef EMailFormatterExtension EMailFormatterAudioInline; -typedef EMailFormatterExtensionClass EMailFormatterAudioInlineClass; +typedef EMailFormatterExtension EMailFormatterAudio; +typedef EMailFormatterExtensionClass EMailFormatterAudioClass; -typedef EExtension EMailFormatterAudioInlineLoader; -typedef EExtensionClass EMailFormatterAudioInlineLoaderClass; +typedef EExtension EMailFormatterAudioLoader; +typedef EExtensionClass EMailFormatterAudioLoaderClass; -GType e_mail_formatter_audio_inline_get_type (void); +GType e_mail_formatter_audio_get_type (void); G_DEFINE_DYNAMIC_TYPE ( - EMailFormatterAudioInline, - e_mail_formatter_audio_inline, + EMailFormatterAudio, + e_mail_formatter_audio, E_TYPE_MAIL_FORMATTER_EXTENSION) static const gchar *formatter_mime_types[] = { - "application/vnd.evolution.widget.audio-inline", + "application/vnd.evolution.widget.audio", "audio/ac3", "audio/x-ac3", "audio/basic", @@ -171,7 +171,7 @@ play_clicked (GtkWidget *button, { GstState cur_state; - d (printf ("audio inline formatter: play\n")); + d (printf ("audio formatter: play\n")); if (!part->filename) { CamelStream *stream; @@ -179,12 +179,12 @@ play_clicked (GtkWidget *button, CamelMimePart *mime_part; GError *error = NULL; gint argc = 1; - const gchar *argv[] = { "org_gnome_audio_inline", NULL }; + const gchar *argv[] = { "org_gnome_audio", NULL }; /* FIXME this is ugly, we should stream this directly to gstreamer */ - part->filename = e_mktemp ("org-gnome-audio-inline-file-XXXXXX"); + part->filename = e_mktemp ("org-gnome-audio-file-XXXXXX"); - d (printf ("audio inline formatter: write to temp file %s\n", po->filename)); + d (printf ("audio formatter: write to temp file %s\n", po->filename)); stream = camel_stream_fs_new_with_name ( part->filename, O_RDWR | O_CREAT | O_TRUNC, 0600, NULL); @@ -195,7 +195,7 @@ play_clicked (GtkWidget *button, g_object_unref (mime_part); g_object_unref (stream); - d (printf ("audio inline formatter: init gst playbin\n")); + d (printf ("audio formatter: init gst playbin\n")); if (gst_init_check (&argc, (gchar ***) &argv, &error)) { gchar *uri; @@ -256,17 +256,17 @@ add_button (GtkWidget *box, } static gboolean -emfe_audio_inline_format (EMailFormatterExtension *extension, - EMailFormatter *formatter, - EMailFormatterContext *context, - EMailPart *part, - CamelStream *stream, - GCancellable *cancellable) +mail_formatter_audio_format (EMailFormatterExtension *extension, + EMailFormatter *formatter, + EMailFormatterContext *context, + EMailPart *part, + CamelStream *stream, + GCancellable *cancellable) { gchar *str; str = g_strdup_printf ( - "<object type=\"application/vnd.evolution.widget.audio-inline\" " + "<object type=\"application/vnd.evolution.widget.audio\" " "width=\"100%%\" height=\"auto\" data=\"%s\" id=\"%s\"></object>", e_mail_part_get_id (part), e_mail_part_get_id (part)); @@ -279,10 +279,10 @@ emfe_audio_inline_format (EMailFormatterExtension *extension, } static GtkWidget * -emfe_audio_inline_get_widget (EMailFormatterExtension *extension, - EMailPartList *context, - EMailPart *part, - GHashTable *params) +mail_formatter_audio_get_widget (EMailFormatterExtension *extension, + EMailPartList *context, + EMailPart *part, + GHashTable *params) { GtkWidget *box; EMailPartAudio *ai_part; @@ -308,28 +308,28 @@ emfe_audio_inline_get_widget (EMailFormatterExtension *extension, } static void -e_mail_formatter_audio_inline_class_init (EMailFormatterExtensionClass *class) +e_mail_formatter_audio_class_init (EMailFormatterExtensionClass *class) { class->display_name = _("Audio Player"); class->description = _("Play the attachment in embedded audio player"); class->mime_types = formatter_mime_types; - class->format = emfe_audio_inline_format; - class->get_widget = emfe_audio_inline_get_widget; + class->format = mail_formatter_audio_format; + class->get_widget = mail_formatter_audio_get_widget; } static void -e_mail_formatter_audio_inline_class_finalize (EMailFormatterExtensionClass *class) +e_mail_formatter_audio_class_finalize (EMailFormatterExtensionClass *class) { } static void -e_mail_formatter_audio_inline_init (EMailFormatterExtension *extension) +e_mail_formatter_audio_init (EMailFormatterExtension *extension) { } void -e_mail_formatter_audio_inline_type_register (GTypeModule *type_module) +e_mail_formatter_audio_type_register (GTypeModule *type_module) { - e_mail_formatter_audio_inline_register_type (type_module); + e_mail_formatter_audio_register_type (type_module); } diff --git a/modules/audio-inline/e-mail-formatter-audio-inline.h b/modules/audio-inline/e-mail-formatter-audio.h index 1960f382da..8e486298b2 100644 --- a/modules/audio-inline/e-mail-formatter-audio-inline.h +++ b/modules/audio-inline/e-mail-formatter-audio.h @@ -1,5 +1,5 @@ /* - * e-mail-formatter-audio-inline.h + * e-mail-formatter-audio.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_AUDIO_INLINE_H -#define E_MAIL_FORMATTER_AUDIO_INLINE_H +#ifndef E_MAIL_FORMATTER_AUDIO_H +#define E_MAIL_FORMATTER_AUDIO_H #include <glib-object.h> G_BEGIN_DECLS -void e_mail_formatter_audio_inline_type_register (GTypeModule *type_module); +void e_mail_formatter_audio_type_register (GTypeModule *type_module); G_END_DECLS -#endif /* E_MAIL_FORMATTER_AUDIO_INLINE_H */ +#endif /* E_MAIL_FORMATTER_AUDIO_H */ diff --git a/modules/audio-inline/evolution-module-audio-inline.c b/modules/audio-inline/evolution-module-audio-inline.c index c57f3b286d..d58883ae1a 100644 --- a/modules/audio-inline/evolution-module-audio-inline.c +++ b/modules/audio-inline/evolution-module-audio-inline.c @@ -16,7 +16,7 @@ * */ -#include "e-mail-formatter-audio-inline.h" +#include "e-mail-formatter-audio.h" #include "e-mail-parser-audio.h" #include <gmodule.h> @@ -29,7 +29,7 @@ G_MODULE_EXPORT void e_module_load (GTypeModule *type_module) { e_mail_parser_audio_type_register (type_module); - e_mail_formatter_audio_inline_type_register (type_module); + e_mail_formatter_audio_type_register (type_module); } G_MODULE_EXPORT void |