From 24a63786fb38ec1caa347832efffc33ae1f775da Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Tue, 24 Jul 2007 10:06:10 +0000 Subject: [PATCH] * let modest_platform_get_file_icon_name accept files with NULL filenames as well. this should fix some icon / Criticals-issues. pmo-trunk-r2784 --- src/maemo/modest-platform.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/maemo/modest-platform.c b/src/maemo/modest-platform.c index d1e9e2f..1e25a46 100644 --- a/src/maemo/modest-platform.c +++ b/src/maemo/modest-platform.c @@ -204,14 +204,11 @@ guess_mime_type_from_name (const gchar* name) gchar* modest_platform_get_file_icon_name (const gchar* name, const gchar* mime_type, - gchar **effective_mime_type) + gchar **effective_mime_type) { GString *mime_str = NULL; gchar *icon_name = NULL; gchar **icons, **cursor; - - - g_return_val_if_fail (name || mime_type, NULL); if (!mime_type || !g_ascii_strcasecmp (mime_type, "application/octet-stream")) mime_str = g_string_new (guess_mime_type_from_name(name)); -- 1.7.9.5