aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mail-notification
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-09-12 02:56:28 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-09-13 20:28:58 +0800
commitcd53ba990035bdb4861d9660917d457533d4ecb2 (patch)
treed9c9da2208f4a921c514497ea92d27e3d88481d1 /plugins/mail-notification
parentb2b27cfa1bfcd6efdac30d2745a6e8cd4e6de134 (diff)
downloadgsoc2013-evolution-cd53ba990035bdb4861d9660917d457533d4ecb2.tar.gz
gsoc2013-evolution-cd53ba990035bdb4861d9660917d457533d4ecb2.tar.zst
gsoc2013-evolution-cd53ba990035bdb4861d9660917d457533d4ecb2.zip
Coding style cleanups.
Diffstat (limited to 'plugins/mail-notification')
-rw-r--r--plugins/mail-notification/mail-notification.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/mail-notification/mail-notification.c b/plugins/mail-notification/mail-notification.c
index a46af56fa5..022c2c92d6 100644
--- a/plugins/mail-notification/mail-notification.c
+++ b/plugins/mail-notification/mail-notification.c
@@ -553,7 +553,7 @@ new_notify_status (EMEventTargetFolder *t)
if (is_part_enabled (GCONF_KEY_STATUS_NOTIFICATION)) {
gchar *safetext;
- safetext = g_markup_escape_text(msg, strlen(msg));
+ safetext = g_markup_escape_text (msg, strlen (msg));
if (notify) {
notify_notification_update (
notify, _("New email"),
@@ -581,7 +581,7 @@ new_notify_status (EMEventTargetFolder *t)
500, notification_callback, notify);
}
}
- g_free(safetext);
+ g_free (safetext);
}
#endif
@@ -688,17 +688,17 @@ do_play_sound (gboolean beep, gboolean use_theme, const gchar *file)
if (!beep) {
#ifdef HAVE_CANBERRA
if (!use_theme && file && *file)
- ca_context_play(mailnotification, 0,
+ ca_context_play (mailnotification, 0,
CA_PROP_MEDIA_FILENAME, file,
NULL);
else
- ca_context_play(mailnotification, 0,
+ ca_context_play (mailnotification, 0,
CA_PROP_EVENT_ID,"message-new-email",
NULL);
#endif
}
else
- gdk_beep();
+ gdk_beep ();
}
struct _SoundConfigureWidgets
@@ -740,8 +740,8 @@ sound_play_cb (GtkWidget *widget, gpointer data)
return;
file = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (scw->filechooser));
- do_play_sound (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (scw->beep)),
- gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (scw->use_theme)),
+ do_play_sound (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (scw->beep)),
+ gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (scw->use_theme)),
file);
g_free (file);
}
@@ -805,15 +805,15 @@ enable_sound (gint enable)
{
#ifdef HAVE_CANBERRA
if (enable) {
- ca_context_create(&mailnotification);
- ca_context_change_props(
+ ca_context_create (&mailnotification);
+ ca_context_change_props (
mailnotification,
CA_PROP_APPLICATION_NAME,
"mailnotification Plugin",
NULL);
}
else
- ca_context_destroy(mailnotification);
+ ca_context_destroy (mailnotification);
#endif
}