projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7ff5920
)
Added a hint with the account name of the new headers for notifications
author
Sergio Villar Senin
<svillar@igalia.com>
Fri, 27 Feb 2009 12:15:23 +0000
(12:15 +0000)
committer
Sergio Villar Senin
<svillar@igalia.com>
Fri, 27 Feb 2009 12:15:23 +0000
(12:15 +0000)
pmo-trunk-r7727
src/hildon2/modest-platform.c
patch
|
blob
|
history
diff --git
a/src/hildon2/modest-platform.c
b/src/hildon2/modest-platform.c
index
e5a9d93
..
7263690
100644
(file)
--- a/
src/hildon2/modest-platform.c
+++ b/
src/hildon2/modest-platform.c
@@
-1514,6
+1514,7
@@
modest_platform_on_new_headers_received (TnyList *header_list,
/* Play sound if the user wants. Show the LED
pattern. Show and play just one */
if (G_UNLIKELY (first_notification)) {
/* Play sound if the user wants. Show the LED
pattern. Show and play just one */
if (G_UNLIKELY (first_notification)) {
+ TnyAccount *account;
first_notification = FALSE;
first_notification = FALSE;
@@
-1522,7
+1523,16
@@
modest_platform_on_new_headers_received (TnyList *header_list,
"dialog-type", 4);
notify_notification_set_hint_string(NOTIFY_NOTIFICATION (notification),
"led-pattern",
"dialog-type", 4);
notify_notification_set_hint_string(NOTIFY_NOTIFICATION (notification),
"led-pattern",
- MODEST_NEW_MAIL_LIGHTING_PATTERN);
+ MODEST_NEW_MAIL_LIGHTING_PATTERN);
+
+ /* Set the account of the headers */
+ account = tny_folder_get_account (folder);
+ if (account) {
+ notify_notification_set_hint_string(NOTIFY_NOTIFICATION (notification),
+ "email-account",
+ tny_account_get_id (account));
+ g_object_unref (account);
+ }
}
/* Notify. We need to do this in an idle because this function
}
/* Notify. We need to do this in an idle because this function