[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gap-dev-discuss] get rid of #ifdef MACOSX in GNUMails MimeTypeManager.m
From: |
Sebastian Reitenbach |
Subject: |
[Gap-dev-discuss] get rid of #ifdef MACOSX in GNUMails MimeTypeManager.m |
Date: |
Fri, 31 Aug 2012 18:14:55 +0200 |
User-agent: |
SOGoMail 1.3.17 |
Hi,
the patch below makes GNUstep lookup icons shown for attachments in the
MailViewer
in NSWorkspace. Works well for me. Tested with an attached .m file, which showed
the correct image, instead of the one with the question mark.
OK?
cheers,
Sebastian
$OpenBSD$
--- Framework/GNUMail/MimeTypeManager.m.orig Fri Aug 31 18:08:54 2012
+++ Framework/GNUMail/MimeTypeManager.m Fri Aug 31 18:09:03 2012
@@ -280,11 +280,7 @@ NSString *PathToMimeTypes()
}
else
{
-#ifdef MACOSX
anImage = [[NSWorkspace sharedWorkspace] iconForFileType:
thePathExtension];
-#else
- anImage = [NSImage imageNamed: @"common_Unknown.tiff"];
-#endif
}
return anImage;