[Monodevelop-patches-list] r1071 - trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Properties
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Mon Mar 1 15:15:39 EST 2004
Author: tberman
Date: 2004-03-01 15:15:39 -0500 (Mon, 01 Mar 2004)
New Revision: 1071
Modified:
trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Properties/TextEditorProperties.cs
Log:
workaround unknown monospace gconf key
Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Properties/TextEditorProperties.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Properties/TextEditorProperties.cs 2004-03-01 02:34:33 UTC (rev 1070)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Properties/TextEditorProperties.cs 2004-03-01 20:15:39 UTC (rev 1071)
@@ -270,7 +270,11 @@
switch (s) {
case "__default_monospace":
- return FontDescription.FromString ((string) new GConf.Client ().Get ("/desktop/gnome/interface/monospace_font_name"));
+ try {
+ return FontDescription.FromString ((string) new GConf.Client ().Get ("/desktop/gnome/interface/monospace_font_name"));
+ } catch {
+ goto case "__default_sans";
+ }
case "__default_sans":
return new Gtk.Label ("").Style.FontDescription;
default:
More information about the Monodevelop-patches-list
mailing list