diff options
Diffstat (limited to 'ext/tk/lib/tkextlib/itk/incr_tk.rb')
-rw-r--r-- | ext/tk/lib/tkextlib/itk/incr_tk.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/tk/lib/tkextlib/itk/incr_tk.rb b/ext/tk/lib/tkextlib/itk/incr_tk.rb index db01bfe85e..84143a3ea3 100644 --- a/ext/tk/lib/tkextlib/itk/incr_tk.rb +++ b/ext/tk/lib/tkextlib/itk/incr_tk.rb @@ -47,6 +47,10 @@ module Tk '::itk::' << self::WidgetClassName end + def __destroy_hook__ + Tk::Itk::Component::ComponentID_TBL.delete(self.path) + end + #### [incr Tk] public methods def component simplelist(tk_send('component')) @@ -129,7 +133,7 @@ module Tk end ComponentID_TBL = TkCore::INTERP.create_table - Itk_Component_ID = ['itk_component'.freeze, '00000'.taint].freeze + Itk_Component_ID = ['itk:component'.freeze, '00000'.taint].freeze TkCore::INTERP.init_ip_env{ ComponentID_TBL.clear } |