aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mail-notification/mail-notification.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-08-30 12:48:57 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-08-30 12:48:57 +0800
commit0f7f4cfe38b3c4cd83efbe9922ae15c5aee00317 (patch)
treeac2e7dc42ce4020548e020fdec9c281eb8b83e97 /plugins/mail-notification/mail-notification.c
parent82bc7f0b36b5e951817307e96e1e0be3a8ee34cc (diff)
downloadgsoc2013-evolution-0f7f4cfe38b3c4cd83efbe9922ae15c5aee00317.tar.gz
gsoc2013-evolution-0f7f4cfe38b3c4cd83efbe9922ae15c5aee00317.tar.zst
gsoc2013-evolution-0f7f4cfe38b3c4cd83efbe9922ae15c5aee00317.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'plugins/mail-notification/mail-notification.c')
-rw-r--r--plugins/mail-notification/mail-notification.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/plugins/mail-notification/mail-notification.c b/plugins/mail-notification/mail-notification.c
index 07483e7e06..f6272ba873 100644
--- a/plugins/mail-notification/mail-notification.c
+++ b/plugins/mail-notification/mail-notification.c
@@ -395,7 +395,7 @@ can_support_actions (void)
caps = notify_get_server_caps ();
if (caps != NULL) {
for (c = caps; c != NULL; c = c->next) {
- if (strcmp ((char*)c->data, "actions") == 0) {
+ if (strcmp ((gchar *)c->data, "actions") == 0) {
supports_actions = TRUE;
break;
}
@@ -460,7 +460,7 @@ new_notify_status (EMEventTargetFolder *t)
notify_notification_set_timeout (notify, NOTIFY_EXPIRES_DEFAULT);
notify_notification_add_action(notify, "default", "Default", notifyActionCallback, NULL, NULL);
g_timeout_add (500, notification_callback, notify);
- }
+ }
}
}
#endif
@@ -630,7 +630,7 @@ sound_play_cb (GtkWidget *widget, gpointer data)
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)),
+ gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (scw->use_theme)),
file);
g_free (file);
}
@@ -651,7 +651,7 @@ sound_notify_idle_cb (gpointer user_data)
client = gconf_client_get_default ();
file = gconf_client_get_string (client, GCONF_KEY_SOUND_FILE, NULL);
-
+
do_play_sound (is_part_enabled (GCONF_KEY_SOUND_BEEP),
is_part_enabled (GCONF_KEY_SOUND_USE_THEME),
file);
@@ -690,11 +690,13 @@ read_notify_sound (EMEventTargetMessage *t)
static void
enable_sound (gint enable)
{
- if (enable){
+ if (enable) {
ca_context_create(&mailnotification);
- ca_context_change_props(mailnotification,
- CA_PROP_APPLICATION_NAME, "mailnotification Plugin",
- NULL);
+ ca_context_change_props(
+ mailnotification,
+ CA_PROP_APPLICATION_NAME,
+ "mailnotification Plugin",
+ NULL);
}
else
ca_context_destroy(mailnotification);