From: Jose Dapena Paz Date: Tue, 31 Mar 2009 11:57:19 +0000 (+0000) Subject: Check return value of notify_notification_show X-Git-Tag: git_migration_finished~170 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=57fb79e53b6a84302f1f8d775b136d85e9301169 Check return value of notify_notification_show pmo-trunk-r8491 --- 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);