projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2736630
)
Added support to show incoming notifications based on settings
author
Sergio Villar Senín
<svillar@igalia.com>
Thu, 26 Nov 2009 11:49:30 +0000
(12:49 +0100)
committer
Sergio Villar Senín
<svillar@igalia.com>
Thu, 26 Nov 2009 16:01:03 +0000
(17:01 +0100)
Now there is a global setting that enables/disables issuing new email notifications
Fixes NB#147998
src/hildon2/modest-platform.c
patch
|
blob
|
history
diff --git
a/src/hildon2/modest-platform.c
b/src/hildon2/modest-platform.c
index
74c27a9
..
5790ee8
100644
(file)
--- a/
src/hildon2/modest-platform.c
+++ b/
src/hildon2/modest-platform.c
@@
-1595,6
+1595,10
@@
void
modest_platform_on_new_headers_received (GList *URI_list,
gboolean show_visual)
{
+ /* Check if the user wants to show notifications or not */
+ if (!modest_conf_get_bool (modest_runtime_get_conf (), MODEST_CONF_NOTIFICATIONS, NULL))
+ return;
+
if (g_list_length (URI_list) == 0)
return;