diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-07-12 20:02:18 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-08-20 02:17:55 +0800 |
commit | c85109fc322137596bf34cffc5445d568223c60d (patch) | |
tree | 711e6d5b2eb3d6c7780d1d01e20d980c67a77f9e /modules/audio-inline | |
parent | 7d1751cc26a75166019917ec8c3b35e1083d27d6 (diff) | |
download | gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.gz gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.bz2 gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.lz gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.xz gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.zst gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'modules/audio-inline')
-rw-r--r-- | modules/audio-inline/e-mail-formatter-audio-inline.c | 16 | ||||
-rw-r--r-- | modules/audio-inline/e-mail-parser-audio-inline.c | 4 |
2 files changed, 10 insertions, 10 deletions
diff --git a/modules/audio-inline/e-mail-formatter-audio-inline.c b/modules/audio-inline/e-mail-formatter-audio-inline.c index d03fb915d9..76c70eb5cc 100644 --- a/modules/audio-inline/e-mail-formatter-audio-inline.c +++ b/modules/audio-inline/e-mail-formatter-audio-inline.c @@ -62,7 +62,7 @@ G_DEFINE_DYNAMIC_TYPE_EXTENDED ( E_TYPE_MAIL_FORMATTER_EXTENSION, e_mail_formatter_formatter_extension_interface_init)); -static const gchar* formatter_mime_types[] = { "application/vnd.evolution.widget.audio-inline", +static const gchar * formatter_mime_types[] = { "application/vnd.evolution.widget.audio-inline", "audio/ac3", "audio/x-ac3", "audio/basic", "audio/mpeg", "audio/x-mpeg", "audio/mpeg3", @@ -172,19 +172,19 @@ play_clicked (GtkWidget *button, { GstState cur_state; - d(printf ("audio inline formatter: play\n")); + d (printf ("audio inline formatter: play\n")); if (!part->filename) { CamelStream *stream; CamelDataWrapper *data; GError *error = NULL; gint argc = 1; - const gchar *argv [] = { "org_gnome_audio_inline", NULL }; + const gchar *argv[] = { "org_gnome_audio_inline", NULL }; /* FIXME this is ugly, we should stream this directly to gstreamer */ part->filename = e_mktemp ("org-gnome-audio-inline-file-XXXXXX"); - d(printf ("audio inline formatter: write to temp file %s\n", po->filename)); + d (printf ("audio inline 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); @@ -193,7 +193,7 @@ play_clicked (GtkWidget *button, camel_stream_flush (stream, NULL, NULL); g_object_unref (stream); - d(printf ("audio inline formatter: init gst playbin\n")); + d (printf ("audio inline formatter: init gst playbin\n")); if (gst_init_check (&argc, (gchar ***) &argv, &error)) { gchar *uri; @@ -291,13 +291,13 @@ emfe_audio_inline_get_widget (EMailFormatterExtension *extension, box = gtk_hbutton_box_new (); ai_part->play_button = g_object_ref ( add_button (box, GTK_STOCK_MEDIA_PLAY, - G_CALLBACK (play_clicked), part, TRUE)); + G_CALLBACK (play_clicked), part, TRUE)); ai_part->pause_button = g_object_ref ( add_button (box, GTK_STOCK_MEDIA_PAUSE, - G_CALLBACK (pause_clicked), part, FALSE)); + G_CALLBACK (pause_clicked), part, FALSE)); ai_part->stop_button = g_object_ref ( add_button (box, GTK_STOCK_MEDIA_STOP, - G_CALLBACK (stop_clicked), part, FALSE)); + G_CALLBACK (stop_clicked), part, FALSE)); gtk_widget_show (box); diff --git a/modules/audio-inline/e-mail-parser-audio-inline.c b/modules/audio-inline/e-mail-parser-audio-inline.c index 95926bae29..5509306118 100644 --- a/modules/audio-inline/e-mail-parser-audio-inline.c +++ b/modules/audio-inline/e-mail-parser-audio-inline.c @@ -62,7 +62,7 @@ G_DEFINE_DYNAMIC_TYPE_EXTENDED ( E_TYPE_MAIL_PARSER_EXTENSION, e_mail_parser_parser_extension_interface_init)); -static const gchar* parser_mime_types[] = { "audio/ac3", "audio/x-ac3", +static const gchar * parser_mime_types[] = { "audio/ac3", "audio/x-ac3", "audio/basic", "audio/mpeg", "audio/x-mpeg", "audio/mpeg3", "audio/x-mpeg3", "audio/mp3", @@ -114,7 +114,7 @@ empe_audio_inline_parse (EMailParserExtension *extension, len = part_id->len; g_string_append (part_id, ".org-gnome-audio-inline-button-panel"); - d(printf ("audio inline formatter: format classid %s\n", part_id->str)); + d (printf ("audio inline formatter: format classid %s\n", part_id->str)); mail_part = (EMailPartAudioInline *) e_mail_part_subclass_new ( part, part_id->str, sizeof (EMailPartAudioInline), |