summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tkvirtevent.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/lib/tkvirtevent.rb')
-rw-r--r--ext/tk/lib/tkvirtevent.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/tk/lib/tkvirtevent.rb b/ext/tk/lib/tkvirtevent.rb
index f5dcdc9429..e87be340af 100644
--- a/ext/tk/lib/tkvirtevent.rb
+++ b/ext/tk/lib/tkvirtevent.rb
@@ -10,6 +10,13 @@ class TkVirtualEvent<TkObject
TkVirtualEventID = [0]
TkVirtualEventTBL = {}
+ TkComm::INITIALIZE_TARGETS << self
+
+ def self.__init_tables__
+ TkVirtualEventTBL.clear
+ TkVirtualEventID[0] = 0
+ end
+
class PreDefVirtEvent<self
def initialize(event)
@path = @id = event