Skip to content
Snippets Groups Projects
Commit a18d7c4c authored by Niels Möller's avatar Niels Möller
Browse files

Changed event handling.

Rev: lib/modules/Protocols.pmod/X.pmod/Xlib.pmod:1.26
parent 031faf4f
No related branches found
No related tags found
No related merge requests found
...@@ -254,12 +254,13 @@ class Display ...@@ -254,12 +254,13 @@ class Display
if (event->wid && (w = lookup_id(event->wid)) if (event->wid && (w = lookup_id(event->wid))
&& (a = (w->event_callbacks[event->type]))) && (a = (w->event_callbacks[event->type])))
{ {
foreach(a, function f) foreach(a, array pair)
{ {
if (!(event = f(event, this_object()))) if (!(event = pair[1](event, this_object())))
return; return;
} }
// FIXME: Should event be forwarded to parent or not? // FIXME: Should event be forwarded to parent or not?
// No, let the widget's signal() function handle that.
} }
else else
if (misc_event_handler) if (misc_event_handler)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment