From 4bbe1754993cb2d9130e0534de207250336a2150 Mon Sep 17 00:00:00 2001 From: ntalbott Date: Tue, 11 Nov 2003 14:57:15 +0000 Subject: [PATCH] * lib/test/unit/ui/gtk/testrunner.rb: added a rescue clause to handle the case when the requested font is not available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/test/unit/ui/gtk/testrunner.rb | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 57b79dfbf2..360a691e7f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Nov 11 23:54:00 2003 Nathaniel Talbott + + * lib/test/unit/ui/gtk/testrunner.rb: added a rescue clause to handle + the case when the requested font is not available. + Tue Nov 11 22:44:08 2003 Yukihiro Matsumoto * io.c (appendline): file may not end with newline. a bug if diff --git a/lib/test/unit/ui/gtk/testrunner.rb b/lib/test/unit/ui/gtk/testrunner.rb index a4f9f0133a..b62e76920b 100644 --- a/lib/test/unit/ui/gtk/testrunner.rb +++ b/lib/test/unit/ui/gtk/testrunner.rb @@ -328,7 +328,9 @@ module Test @fault_detail_label = EnhancedLabel.new("") style = Gtk::Style.new font = Gdk::Font.font_load("-*-Courier New-medium-r-normal--*-120-*-*-*-*-*-*") - style.set_font(font) + begin + style.set_font(font) + rescue ArgumentError; end @fault_detail_label.set_style(style) @fault_detail_label.set_justify(Gtk::JUSTIFY_LEFT) @fault_detail_label.set_line_wrap(false)