From 8db157d7a1a1fdc49dda5de5eff7bb29766a6009 Mon Sep 17 00:00:00 2001 From: hiro Date: Fri, 14 Oct 2005 07:51:38 +0000 Subject: made some warnings just debug messages. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@647 ee746299-78ed-0310-b773-934348b2243d --- libsylph/procmime.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'libsylph/procmime.c') diff --git a/libsylph/procmime.c b/libsylph/procmime.c index 7c2105b6..102f90ab 100644 --- a/libsylph/procmime.c +++ b/libsylph/procmime.c @@ -1004,10 +1004,17 @@ gchar *procmime_get_mime_type(const gchar *filename) MimeType *mime_type; const gchar *p; gchar *ext; + static gboolean no_mime_type_table = FALSE; + + if (no_mime_type_table) + return NULL; if (!mime_type_table) { mime_type_table = procmime_get_mime_type_table(); - if (!mime_type_table) return NULL; + if (!mime_type_table) { + no_mime_type_table = TRUE; + return NULL; + } } filename = g_basename(filename); @@ -1052,7 +1059,7 @@ static GHashTable *procmime_get_mime_type_table(void) mime_type_list = g_list_concat(mime_type_list, list); if (!mime_type_list) { - g_warning("mime.types not found\n"); + debug_print("mime.types not found\n"); return NULL; } } -- cgit v1.2.3