From: Sergio Villar Senin Date: Mon, 10 Aug 2009 14:27:38 +0000 (+0200) Subject: Add a time hint when reporting notifications X-Git-Tag: 3.0.17-rc29-2~1 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=d113e366426368f815589e3e641e9089a52f4798 Add a time hint when reporting notifications --- diff --git a/src/hildon2/modest-platform.c b/src/hildon2/modest-platform.c index 36650e0..8bf47cc 100644 --- a/src/hildon2/modest-platform.c +++ b/src/hildon2/modest-platform.c @@ -1648,6 +1648,10 @@ modest_platform_on_new_headers_received (GList *URI_list, -1); /* Set the led pattern */ + if (data->time) + notify_notification_set_hint_int32 (NOTIFY_NOTIFICATION (notification), + "time", data->time); + notify_notification_set_hint_int32 (NOTIFY_NOTIFICATION (notification), "dialog-type", 4); notify_notification_set_hint_string(NOTIFY_NOTIFICATION (notification), diff --git a/src/modest-utils.h b/src/modest-utils.h index 0d25831..3e28048 100644 --- a/src/modest-utils.h +++ b/src/modest-utils.h @@ -49,6 +49,7 @@ typedef struct _ModestMsgNotificationData { gchar *subject; gchar *from; gchar *uri; + time_t time; } ModestMsgNotificationData; GQuark modest_utils_get_supported_secure_authentication_error_quark (void);