1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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> 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 * 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("") @fault_detail_label = EnhancedLabel.new("")
style = Gtk::Style.new style = Gtk::Style.new
font = Gdk::Font.font_load("-*-Courier New-medium-r-normal--*-120-*-*-*-*-*-*") font = Gdk::Font.font_load("-*-Courier New-medium-r-normal--*-120-*-*-*-*-*-*")
begin
style.set_font(font) style.set_font(font)
rescue ArgumentError; end
@fault_detail_label.set_style(style) @fault_detail_label.set_style(style)
@fault_detail_label.set_justify(Gtk::JUSTIFY_LEFT) @fault_detail_label.set_justify(Gtk::JUSTIFY_LEFT)
@fault_detail_label.set_line_wrap(false) @fault_detail_label.set_line_wrap(false)