mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 01:23:57 +02:00
* ext/tk/lib/tk.rb, ext/tk/lib/tk/scrollbar.rb, ext/tk/lib/tk/scale.rb:
improve unknonw-option check when create a widget. * ext/tk/lib/tkextlib/blt/unix_dnd.rb, ext/tk/lib/tkextlib/blt/ted.rb, ext/tk/lib/tkextlib/treectrl/tktreectrl.rb: bug fix on 'cget'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fefd85d9ef
commit
40e7794993
8 changed files with 49 additions and 16 deletions
|
@ -4799,8 +4799,15 @@ class TkWindow<TkObject
|
|||
tk_call_without_enc(cmd, @path)
|
||||
keys = __check_available_configure_options(keys)
|
||||
unless keys.empty?
|
||||
tk_call_without_enc('destroy', @path)
|
||||
tk_call_without_enc(cmd, @path, *hash_kv(keys, true))
|
||||
begin
|
||||
tk_call_without_enc('destroy', @path)
|
||||
rescue
|
||||
# cannot destroy
|
||||
configure(keys)
|
||||
else
|
||||
# re-create widget
|
||||
tk_call_without_enc(cmd, @path, *hash_kv(keys, true))
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -5341,7 +5348,7 @@ TkWidget = TkWindow
|
|||
#Tk.freeze
|
||||
|
||||
module Tk
|
||||
RELEASE_DATE = '2008-04-15'.freeze
|
||||
RELEASE_DATE = '2008-04-18'.freeze
|
||||
|
||||
autoload :AUTO_PATH, 'tk/variable'
|
||||
autoload :TCL_PACKAGE_PATH, 'tk/variable'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue