From 412ae4be97a00f38651f0c7ab72072c9b067051a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sergio=20Villar=20Sen=C3=ADn?= Date: Thu, 26 Nov 2009 12:49:30 +0100 Subject: [PATCH] Added support to show incoming notifications based on settings Now there is a global setting that enables/disables issuing new email notifications Fixes NB#147998 --- src/hildon2/modest-platform.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hildon2/modest-platform.c b/src/hildon2/modest-platform.c index 74c27a9..5790ee8 100644 --- 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; -- 1.7.9.5