From 92cedc9152d73bc011cc817126a3ae499a69bfb2 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Sun, 18 Aug 2013 19:38:35 +0200 Subject: [PATCH] Use icon of the file instead of the entity icon with GoToDomRegionAction --- src/Main/Base/Project/Src/Editor/Commands/GoToDefinition.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main/Base/Project/Src/Editor/Commands/GoToDefinition.cs b/src/Main/Base/Project/Src/Editor/Commands/GoToDefinition.cs index 6b57307b7a..f517545a1a 100644 --- a/src/Main/Base/Project/Src/Editor/Commands/GoToDefinition.cs +++ b/src/Main/Base/Project/Src/Editor/Commands/GoToDefinition.cs @@ -64,7 +64,7 @@ namespace ICSharpCode.SharpDevelop.Editor.Commands ambience.ConversionFlags = ConversionFlags.ShowDeclaringType | ConversionFlags.ShowTypeParameterList; return new ContextActionViewModel { Action = new GoToDomRegionAction(entity.Region), - Image = CompletionImage.GetImage(entity), + Image = IconService.GetImageSource(IconService.GetImageForFile(entity.Region.FileName)), Comment = string.Format("(in {0})", Path.GetDirectoryName(entity.Region.FileName)), ChildActions = null };