From 4241d0792123aa07577698a8904de79c57ed0753 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Thu, 3 May 2007 07:46:24 +0000 Subject: Send the new mail count via the dbus interface. svn path=/trunk/; revision=33471 --- plugins/new-mail-notify/ChangeLog | 6 ++++++ plugins/new-mail-notify/new-mail-notify.c | 12 ++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) (limited to 'plugins/new-mail-notify') diff --git a/plugins/new-mail-notify/ChangeLog b/plugins/new-mail-notify/ChangeLog index 1f59cca0e7..d360c4f215 100644 --- a/plugins/new-mail-notify/ChangeLog +++ b/plugins/new-mail-notify/ChangeLog @@ -1,3 +1,9 @@ +2007-05-03 Srinivasa Ragavan + + * new-mail-notify.c (send_dbus_message), + (org_gnome_message_reading_notify), (org_gnome_new_mail_notify): Send + the number of new mails via the dbus message. + 2007-04-02 Sankar P * Committed on behalf of Gilles Dartiguelongue 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); } -- cgit v1.2.3