Re: Fix already available? (was Re: Unhandled exception in Beagle CVS 27may05)
- From: Joe Shaw <joeshaw novell com>
- To: charlielaw luxsci net
- Cc: dashboard-hackers gnome org
- Subject: Re: Fix already available? (was Re: Unhandled exception in Beagle CVS 27may05)
- Date: Fri, 27 May 2005 13:26:50 -0400
Hi,
On Fri, 2005-05-27 at 17:06 +0000, Charlie Law wrote:
> Joe, does this mean that if I check out the sources now, the fix will be
> included in what I dl? I ask, because after seeing your post I did do a quick
> check-out and compile, and the problem is still there. Maybe there's
> something wrong on my end. Thanks.
If you're using anonymous CVS, there's usually a delay of a couple
hours.
I've attached the patch.
Joe
Index: Util/GeckoUtils.cs
===================================================================
RCS file: /cvs/gnome/beagle/Util/GeckoUtils.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- Util/GeckoUtils.cs 1 Nov 2004 20:04:39 -0000 1.2
+++ Util/GeckoUtils.cs 27 May 2005 16:36:52 -0000 1.3
@@ -36,10 +36,22 @@ namespace Beagle.Util {
private static void SetFonts ()
{
- string font = (string)gconf_client.Get ("/desktop/gnome/interface/font_name");
+ string font;
+
+ try {
+ font = (string) gconf_client.Get ("/desktop/gnome/interface/font_name");
+ } catch (GConf.NoSuchKeyException) {
+ font = "sans 12";
+ }
+
GeckoUtils.SetFont (1, font);
- font = (string)gconf_client.Get ("/desktop/gnome/interface/monospace_font_name");
+ try {
+ font = (string) gconf_client.Get ("/desktop/gnome/interface/monospace_font_name");
+ } catch (GConf.NoSuchKeyException) {
+ font = "monospace 12";
+ }
+
GeckoUtils.SetFont (2, font);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]