Add a time hint when reporting notifications
authorSergio Villar Senin <svillar@igalia.com>
Mon, 10 Aug 2009 14:27:38 +0000 (16:27 +0200)
committerSergio Villar Senin <svillar@igalia.com>
Mon, 10 Aug 2009 14:27:38 +0000 (16:27 +0200)
src/hildon2/modest-platform.c
src/modest-utils.h

index 36650e0..8bf47cc 100644 (file)
@@ -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),
index 0d25831..3e28048 100644 (file)
@@ -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);