Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hutchinson <mhutchinson@novell.com>2010-06-16 04:06:02 +0400
committerMichael Hutchinson <mhutchinson@novell.com>2010-06-16 04:06:02 +0400
commit179e6b1c303939ac7a3dbc53e92cd5f0b8b02d63 (patch)
tree8a3f6623d8deda68d1b462490e56a70dfb70e7c2 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Desktop
parent63259a9b87f96bb60e9da9282d1a5223e7f89043 (diff)
Backported r 158988, 158977, 158972, 158970, 158969, 158968, 158967, 158966, 158959monodevelop-2.4
svn path=/branches/monodevelop/2.4/; revision=158990
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Desktop')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Desktop/PlatformService.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Desktop/PlatformService.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Desktop/PlatformService.cs
index 7003cd163b..dfe2037a5d 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Desktop/PlatformService.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Desktop/PlatformService.cs
@@ -79,6 +79,8 @@ namespace MonoDevelop.Ide.Desktop
public string GetMimeTypeDescription (string mimeType)
{
+ if (mimeType == "text/plain")
+ return GettextCatalog.GetString ("Text file");
MimeTypeNode mt = FindMimeType (mimeType);
if (mt != null && mt.Description != null)
return mt.Description;
@@ -202,6 +204,8 @@ namespace MonoDevelop.Ide.Desktop
string GetIconForType (string type)
{
+ if (type == "text/plain")
+ return "md-text-file-icon";
MimeTypeNode mt = FindMimeType (type);
if (mt != null)
return mt.Icon;