From 57fb79e53b6a84302f1f8d775b136d85e9301169 Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Tue, 31 Mar 2009 11:57:19 +0000 Subject: [PATCH] Check return value of notify_notification_show pmo-trunk-r8491 --- src/hildon2/modest-platform.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hildon2/modest-platform.c b/src/hildon2/modest-platform.c index b27552a..e45ee41 100644 --- a/src/hildon2/modest-platform.c +++ b/src/hildon2/modest-platform.c @@ -1602,7 +1602,9 @@ modest_platform_on_new_headers_received (TnyList *header_list, /* Notify. We need to do this in an idle because this function could be called from a thread */ - notify_notification_show (NOTIFY_NOTIFICATION (notification), NULL); + if (!notify_notification_show (NOTIFY_NOTIFICATION (notification), NULL)) { + g_warning ("Failed to send notification"); + } /* Save id in the list */ g_object_get(G_OBJECT(notification), "id", ¬if_id, NULL); -- 1.7.9.5