diff --git a/ChangeLog b/ChangeLog index 1facb28619..115065f7d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +Fri Jun 24 12:23:19 2005 Hidetoshi NAGAI + + * ext/tk/lib/tk.rb: fix typo on Tk.grid_propagate. + + * ext/tk/lib/tk.rb: Tk.event_generate and TkWindow#event_generate + accept TkEvent::Event object as context argument. + + * ext/tk/lib/tk/event.rb: add TkEvent::Event#valid_fields and + valid_for_generate to get field parameters of event_generate. + Thu Jun 23 23:55:59 2005 Nobuyoshi Nakada * runruby.rb: should load built rbconfig.rb. diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb index c076b741a5..9daee2de54 100644 --- a/ext/tk/lib/tk.rb +++ b/ext/tk/lib/tk.rb @@ -1516,7 +1516,9 @@ module TkCore def event_generate(win, context, keys=nil) #win = win.path if win.kind_of?(TkObject) - if keys + if context.kind_of?(TkEvent::Event) + context.generate(win, ((keys)? keys: {})) + elsif keys tk_call_without_enc('event', 'generate', win, "<#{tk_event_sequence(context)}>", *hash_kv(keys, true)) @@ -3500,7 +3502,9 @@ class TkObject", *hash_kv(keys)) tk_call_without_enc('event', 'generate', path, @@ -3832,9 +3836,9 @@ class TkWindow