[Monodevelop-patches-list] r732 - trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Gui/Editor

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Sat Jan 31 02:01:57 EST 2004


Author: tberman
Date: 2004-01-31 02:01:57 -0500 (Sat, 31 Jan 2004)
New Revision: 732

Modified:
   trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Gui/Editor/SharpDevelopTextEditorProperties.cs
Log:
S.D bugfix


Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Gui/Editor/SharpDevelopTextEditorProperties.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Gui/Editor/SharpDevelopTextEditorProperties.cs	2004-01-31 06:48:25 UTC (rev 731)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Gui/Editor/SharpDevelopTextEditorProperties.cs	2004-01-31 07:01:57 UTC (rev 732)
@@ -244,7 +244,11 @@
 		
 		public FontDescription Font {
 			get {
-				return FontContainer.ParseFont(properties.GetProperty("DefaultFont", new System.Drawing.Font("Courier New", 10).ToString()));
+				string s = properties.GetProperty ("DefaultFont", "ack");
+				if (s == "ack") {
+					return new Gtk.Label ("").Style.FontDescription;
+				}
+				return FontContainer.ParseFont(s);
 			}
 			set {
 				properties.SetProperty("DefaultFont", value.ToString());




More information about the Monodevelop-patches-list mailing list