aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/new-mail-notify/ChangeLog6
-rw-r--r--plugins/new-mail-notify/new-mail-notify.c12
2 files changed, 12 insertions, 6 deletions
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 <sragavan@novell.com>
+
+ * 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 <psankar@novell.com>
* Committed on behalf of Gilles Dartiguelongue <dartigug@esiee.fr>
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);
}