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 | 58158f3929e11a5743c5012bece8a3ca55385c99 (patch) | |
tree | 188e6fcb57245616a2b5d0860d6ad890a5a565bb | |
parent | 5ceef7994325675ca20f6ca66e4c010277703294 (diff) | |
download | ruby-58158f3929e11a5743c5012bece8a3ca55385c99.tar.gz ruby-58158f3929e11a5743c5012bece8a3ca55385c99.tar.xz ruby-58158f3929e11a5743c5012bece8a3ca55385c99.zip |
* 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: http://svn.ruby-lang.org/repos/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 a4f9f0133..b62e76920 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) |