[Monodevelop-patches-list] r1079 - branches/MonoDevelop-0.1/src/AddIns/DisplayBindings/SourceEditor/Properties
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Tue Mar 2 09:36:52 EST 2004
Author: tberman
Date: 2004-03-02 09:36:52 -0500 (Tue, 02 Mar 2004)
New Revision: 1079
Modified:
branches/MonoDevelop-0.1/src/AddIns/DisplayBindings/SourceEditor/Properties/TextEditorProperties.cs
Log:
backported SuSE fix.
Modified: branches/MonoDevelop-0.1/src/AddIns/DisplayBindings/SourceEditor/Properties/TextEditorProperties.cs
===================================================================
--- branches/MonoDevelop-0.1/src/AddIns/DisplayBindings/SourceEditor/Properties/TextEditorProperties.cs 2004-03-02 14:34:49 UTC (rev 1078)
+++ branches/MonoDevelop-0.1/src/AddIns/DisplayBindings/SourceEditor/Properties/TextEditorProperties.cs 2004-03-02 14:36:52 UTC (rev 1079)
@@ -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