[mono/monodevelop] eaf9ccb8: Fixed 'Bug 15142 - Inline error & warning bubble count indicator

Mike Krüger ([email protected]) <[email protected]>
Newsgroups gmane.comp.gnome.mono.patches
Message-ID <000001418220d75a-380fbaf3-42a3-4853-acb8-a82ff15d0dfe-000000@email.amazonses.com>
   Branch: refs/heads/master
     Home: https://github.com/mono/monodevelop
  Compare: https://github.com/mono/monodevelop/compare/037e68094d0e...eaf9ccb8f615

   Commit: eaf9ccb8f615d19eb3002947fe90c429e479caa8
   Author: Mike Krüger <[email protected]> (mkrueger)
     Date: 2013-10-04 06:19:33 GMT
      URL: https://github.com/mono/monodevelop/commit/eaf9ccb8f615d19eb3002947fe90c429e479caa8

Fixed 'Bug 15142 - Inline error & warning bubble count indicator
should be bold'

Changed paths:
  M main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor.addin.xml
  M main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/MessageBubbleCache.cs
  M main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/MessageBubbleTextMarker.cs

Modified: main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor.addin.xml
===================================================================
@@ -219,6 +219,7 @@
 
 	<Extension path = "/MonoDevelop/Ide/Fonts">
 		<Font name ="MessageBubbles" _displayName="Message bubbles" default ="_DEFAULT_SANS" defaultMac = "Lucida Grande 10"/>
+		<Font name ="MessageBubbleCounter" _displayName="Message bubbles error count" default ="_DEFAULT_SANS" defaultMac = "Lucida Grande Bold 10"/>
 		<Font name ="MessageBubbleTooltip" _displayName="Message bubbles tooltip" default ="_DEFAULT_SANS" defaultMac = "Lucida Grande Bold 10"/>
 		<Font name ="LanguageTooltips" _displayName="Editor tooltips" default ="_DEFAULT_SANS"/>
 	</Extension>

Modified: main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/MessageBubbleCache.cs
===================================================================
@@ -47,6 +47,7 @@ class MessageBubbleCache : IDisposable
 
 		internal Pango.FontDescription fontDescription;
 		internal Pango.FontDescription tooltipFontDescription;
+		internal Pango.FontDescription errorCountFontDescription;
 
 		public MessageBubbleTextMarker CurrentSelectedTextMarker;
 
@@ -64,6 +65,7 @@ public MessageBubbleCache (TextEditor editor)
 			editor.HAdjustment.ValueChanged += HandleValueChanged;
 			fontDescription = FontService.GetFontDescription ("MessageBubbles");
 			tooltipFontDescription = FontService.GetFontDescription ("MessageBubbleTooltip");
+			errorCountFontDescription = FontService.GetFontDescription ("MessageBubbleCounter");
 		}
 
 		void HandleValueChanged (object sender, EventArgs e)

Modified: main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/MessageBubbleTextMarker.cs
===================================================================
@@ -283,7 +283,7 @@ internal void EnsureLayoutCreated (TextEditor editor)
 			
 			if (errorCountLayout == null && errors.Count > 1) {
 				errorCountLayout = new Pango.Layout (editor.PangoContext);
-				errorCountLayout.FontDescription = FontService.GetFontDescription ("MessageBubbles");
+				errorCountLayout.FontDescription = cache.errorCountFontDescription;
 				errorCountLayout.SetText (errors.Count.ToString ());
 			}
 		}
_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.