From d47da7d6f802c8ad0848b2332998d7d01e0b5585 Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Wed, 26 Aug 2009 16:36:21 +0200 Subject: [PATCH] Fixes NB#134700, play a sound after a send&receive if new headers are received and application is active in the foreground --- src/hildon2/modest-platform.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/hildon2/modest-platform.c b/src/hildon2/modest-platform.c index ea4b9e8..e857ca9 100644 --- a/src/hildon2/modest-platform.c +++ b/src/hildon2/modest-platform.c @@ -1605,10 +1605,12 @@ modest_platform_on_new_headers_received (GList *URI_list, app_in_foreground = hildon_program_get_is_topmost (hildon_program_get_instance ()); screen_on = modest_window_mgr_screen_is_on (modest_runtime_get_window_mgr ()); - /* If the screen is on and the app is in the - foreground we don't show anything */ - if (screen_on && app_in_foreground) + /* If the screen is on and the app is in the foreground we + don't show anything, just play a chime */ + if (screen_on && app_in_foreground) { + modest_platform_play_email_tone (); return; + } if (g_list_length (URI_list) == 0) return; -- 1.7.9.5