aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/new-mail-notify/new-mail-notify.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2007-05-03 15:46:24 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2007-05-03 15:46:24 +0800
commit4241d0792123aa07577698a8904de79c57ed0753 (patch)
tree1a625d2eefba4c769b129756742832e620fdbd64 /plugins/new-mail-notify/new-mail-notify.c
parentc12711e656c8658402a084e2d0099c702ea1064d (diff)
downloadgsoc2013-evolution-4241d0792123aa07577698a8904de79c57ed0753.tar
gsoc2013-evolution-4241d0792123aa07577698a8904de79c57ed0753.tar.gz
gsoc2013-evolution-4241d0792123aa07577698a8904de79c57ed0753.tar.bz2
gsoc2013-evolution-4241d0792123aa07577698a8904de79c57ed0753.tar.lz
gsoc2013-evolution-4241d0792123aa07577698a8904de79c57ed0753.tar.xz
gsoc2013-evolution-4241d0792123aa07577698a8904de79c57ed0753.tar.zst
gsoc2013-evolution-4241d0792123aa07577698a8904de79c57ed0753.zip
Send the new mail count via the dbus interface.
svn path=/trunk/; revision=33471
Diffstat (limited to 'plugins/new-mail-notify/new-mail-notify.c')
-rw-r--r--plugins/new-mail-notify/new-mail-notify.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/new-mail-notify/new-mail-notify.c b/plugins/new-mail-notify/new-mail-notify.c
index c3afa898b2..dff1760730 100644
--- a/plugins/new-mail-notify/new-mail-notify.c
+++ b/plugins/new-mail-notify/new-mail-notify.c
@@ -46,7 +46,7 @@ static DBusConnection *bus = NULL;
static gboolean enabled = FALSE;
static void
-send_dbus_message (const char *name, const char *data, gboolean resolve)
+send_dbus_message (const char *name, const char *data, guint new)
{
DBusMessage *message;
@@ -63,13 +63,13 @@ send_dbus_message (const char *name, const char *data, gboolean resolve)
#endif
DBUS_TYPE_INVALID);
- if (resolve) {
+ if (new) {
char * display_name = em_utils_folder_name_from_uri(data);
dbus_message_append_args (message,
#if DBUS_VERSION >= 310
- DBUS_TYPE_STRING, &display_name,
+ DBUS_TYPE_STRING, &display_name, DBUS_TYPE_UINT32, &new,
#else
- DBUS_TYPE_STRING, display_name,
+ DBUS_TYPE_STRING, display_name, DBUS_TYPE_UINT32, new,
#endif
DBUS_TYPE_INVALID);
@@ -86,14 +86,14 @@ void
org_gnome_message_reading_notify (EPlugin *ep, EMEventTargetMessage *t)
{
if (bus != NULL)
- send_dbus_message ("MessageReading", t->folder->name, FALSE);
+ send_dbus_message ("MessageReading", t->folder->name, 0);
}
void
org_gnome_new_mail_notify (EPlugin *ep, EMEventTargetFolder *t)
{
if (bus != NULL)
- send_dbus_message ("Newmail", t->uri, TRUE);
+ send_dbus_message ("Newmail", t->uri, t->new);
}