diff options
author | ntalbott <ntalbott@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-11 14:57:15 +0000 |
---|---|---|
committer | ntalbott <ntalbott@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-11 14:57:15 +0000 |
commit | 4bbe1754993cb2d9130e0534de207250336a2150 (patch) | |
tree | 188e6fcb57245616a2b5d0860d6ad890a5a565bb | |
parent | 2c1140b3e0b72c9e33780a24706bc5757dff226b (diff) |
* 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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/test/unit/ui/gtk/testrunner.rb | 4 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Tue Nov 11 23:54:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org> + + * 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 <matz@ruby-lang.org> * 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) |