diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-09 19:29:29 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-09 19:29:29 +0000 |
commit | 24d2225afde5beb0771c8987c2e1c80ce900b52a (patch) | |
tree | 5e84584302570f87a94a98d9c30e1ca67e270a55 /ext/tk/lib/tk/msgcat.rb | |
parent | 703f913426357ca462c0d82336bdb1f193e5e879 (diff) |
* ext/tk/lib/tk.rb: better operation for SIGINT when processing callbacks.
* ext/tk/lib/tk/msgcat.rb: ditto.
* ext/tk/lib/tk/variable.rb: ditto.
* ext/tk/lib/tk/timer.rb: ditto.
* ext/tk/lib/tk/validation.rb: add Tk::ValidateConfigure.__def_validcmd()
to define validatecommand methods easier
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tk/msgcat.rb')
-rw-r--r-- | ext/tk/lib/tk/msgcat.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/tk/lib/tk/msgcat.rb b/ext/tk/lib/tk/msgcat.rb index 6c46542faf..361b9a5de3 100644 --- a/ext/tk/lib/tk/msgcat.rb +++ b/ext/tk/lib/tk/msgcat.rb @@ -57,6 +57,10 @@ class TkMsgCatalog < TkObject return src_str unless cmd # no cmd -> return src-str (default action) begin cmd.call(locale, src_str) + rescue SystemExit + exit(0) + rescue Interrupt + exit!(1) rescue Exception => e begin msg = _toUTF8(e.class.inspect) + ': ' + |