* 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
This commit is contained in:
ntalbott 2003-11-11 14:57:15 +00:00
parent 2c1140b3e0
commit 4bbe175499
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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)