[Monodevelop-patches-list] r784 - in trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor: . Gui

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Wed Feb 4 19:08:11 EST 2004


Author: benm
Date: 2004-02-04 19:08:11 -0500 (Wed, 04 Feb 2004)
New Revision: 784

Modified:
   trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs
   trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Makefile
Log:
get fonts working right here

Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs	2004-02-04 23:18:50 UTC (rev 783)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs	2004-02-05 00:08:11 UTC (rev 784)
@@ -14,6 +14,7 @@
 using GtkSharp;
 
 using MonoDevelop.GuiUtils;
+using MonoDevelop.EditorBindings.Properties;
 
 namespace MonoDevelop.SourceEditor.Gui {
 	public class SourceEditorDisplayBinding : IDisplayBinding {
@@ -91,6 +92,11 @@
 			se.View.ToggleOverwrite += new EventHandler (CaretModeChanged);
 			
 			CaretModeChanged (null, null);
+			PropertiesChanged (null, null);
+			
+			PropertyService propertyService = (PropertyService) ServiceManager.Services.GetService (typeof (PropertyService));
+			IProperties properties2 = ((IProperties) propertyService.GetProperty("ICSharpCode.TextEditor.Document.Document.DefaultDocumentAggregatorProperties", new DefaultProperties()));
+			properties2.PropertyChanged += new PropertyEventHandler (PropertiesChanged);
 		}
 		
 		public void JumpTo (int line, int column)
@@ -252,6 +258,11 @@
 			se.Buffer.ClearBookmarks ();
 		}
 #endregion
+		
+		void PropertiesChanged (object sender, PropertyEventArgs e)
+		{
+			se.View.ModifyFont (TextEditorProperties.Font);
+		}
 
 	}
 }

Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Makefile
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Makefile	2004-02-04 23:18:50 UTC (rev 783)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Makefile	2004-02-05 00:08:11 UTC (rev 784)
@@ -7,4 +7,5 @@
 		/r:../../../../build/bin/MonoDevelop.Core.dll \
 		/r:../../../../build/bin/MonoDevelop.Base.dll \
 		/r:../../../../build/bin/MonoDevelop.Gui.Utils.dll \
+		/r:../../../../build/bin/MonoDevelop.EditorBindings.dll \
 		/r:System.Drawing.dll




More information about the Monodevelop-patches-list mailing list