aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mail-notification
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2007-11-15 06:04:21 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2007-11-15 06:04:21 +0800
commit9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91 (patch)
tree2e1e96f33404781354c422a7e9beaf458ebeb655 /plugins/mail-notification
parent7e8f8bb9e5167b0219b48ab3e8062080d3740b0a (diff)
downloadgsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar
gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.gz
gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.bz2
gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.lz
gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.xz
gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.zst
gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.zip
** Remove trailing whitespace from source code.
2007-11-14 Matthew Barnes <mbarnes@redhat.com> ** Remove trailing whitespace from source code. svn path=/trunk/; revision=34537
Diffstat (limited to 'plugins/mail-notification')
-rw-r--r--plugins/mail-notification/mail-notification.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/plugins/mail-notification/mail-notification.c b/plugins/mail-notification/mail-notification.c
index bcdac7263e..7025579172 100644
--- a/plugins/mail-notification/mail-notification.c
+++ b/plugins/mail-notification/mail-notification.c
@@ -36,7 +36,7 @@
#include <mail/em-folder-tree-model.h>
#include <camel/camel-folder.h>
-#ifdef HAVE_LIBNOTIFY
+#ifdef HAVE_LIBNOTIFY
#include <libnotify/notify.h>
#endif
@@ -50,7 +50,7 @@ void org_gnome_mail_read_notify (EPlugin *ep, EMEventTargetMessage *t);
static gboolean enabled = FALSE;
static GtkStatusIcon *status_icon = NULL;
-#ifdef HAVE_LIBNOTIFY
+#ifdef HAVE_LIBNOTIFY
static gboolean notification_callback (gpointer notify);
static NotifyNotification *notify = NULL;
#endif
@@ -67,7 +67,7 @@ org_gnome_mail_read_notify (EPlugin *ep, EMEventTargetMessage *t)
return;
}
-#ifdef HAVE_LIBNOTIFY
+#ifdef HAVE_LIBNOTIFY
notify_notification_close (notify, NULL);
#endif
gtk_status_icon_set_visible (status_icon, FALSE);
@@ -76,28 +76,28 @@ org_gnome_mail_read_notify (EPlugin *ep, EMEventTargetMessage *t)
}
static void
-#ifdef HAVE_LIBNOTIFY
+#ifdef HAVE_LIBNOTIFY
icon_activated (GtkStatusIcon *icon, NotifyNotification *notify)
#else
icon_activated (GtkStatusIcon *icon, gpointer notify)
#endif
{
g_static_mutex_lock (&mlock);
-#ifdef HAVE_LIBNOTIFY
+#ifdef HAVE_LIBNOTIFY
notify_notification_close (notify, NULL);
-#endif
+#endif
gtk_status_icon_set_visible (status_icon, FALSE);
g_static_mutex_unlock (&mlock);
}
-#ifdef HAVE_LIBNOTIFY
+#ifdef HAVE_LIBNOTIFY
gboolean
notification_callback (gpointer notify)
{
printf("fff\n");
return (!notify_notification_show(notify, NULL));
-
+
}
#endif
@@ -119,7 +119,7 @@ org_gnome_mail_new_notify (EPlugin *ep, EMEventTargetFolder *t)
is_key = gconf_client_get (client, GCONF_KEY_BLINK, NULL);
if (!is_key)
gconf_client_set_bool (client, GCONF_KEY_BLINK, TRUE, NULL);
- else
+ else
gconf_value_free (is_key);
if (!status_icon) {
@@ -133,10 +133,10 @@ org_gnome_mail_new_notify (EPlugin *ep, EMEventTargetFolder *t)
gtk_status_icon_set_tooltip (status_icon, msg);
gtk_status_icon_set_visible (status_icon, TRUE);
- gtk_status_icon_set_blinking (status_icon,
+ gtk_status_icon_set_blinking (status_icon,
gconf_client_get_bool (client, GCONF_KEY_BLINK, NULL));
-#ifdef HAVE_LIBNOTIFY
+#ifdef HAVE_LIBNOTIFY
/* See whether the notification key has already been set */
is_key = gconf_client_get (client, GCONF_KEY_NOTIFICATION, NULL);
if (!is_key)
@@ -150,8 +150,8 @@ org_gnome_mail_new_notify (EPlugin *ep, EMEventTargetFolder *t)
fprintf(stderr,"notify init error");
notify = notify_notification_new (
- _("New email"),
- msg,
+ _("New email"),
+ msg,
"stock_mail",
NULL);
notify_notification_attach_to_status_icon (notify, status_icon);
@@ -166,13 +166,13 @@ org_gnome_mail_new_notify (EPlugin *ep, EMEventTargetFolder *t)
g_free (folder);
g_free (msg);
g_object_unref (client);
-#ifdef HAVE_LIBNOTIFY
+#ifdef HAVE_LIBNOTIFY
g_signal_connect (G_OBJECT (status_icon), "activate",
G_CALLBACK (icon_activated), notify);
#else
g_signal_connect (G_OBJECT (status_icon), "activate",
G_CALLBACK (icon_activated), NULL);
-#endif
+#endif
g_static_mutex_unlock (&mlock);
}
@@ -186,7 +186,7 @@ e_plugin_lib_enable (EPluginLib *ep, int enable)
enabled = TRUE;
else
enabled = FALSE;
-
+
return 0;
}