From: Mauricio <bri...@ya...> - 2008-09-11 14:15:31
|
>> (...) According to that, "after" events return >> void. Gtk2hs, however, seems to type all such >> events like: >> >> :: WidgetClass w => w -> (Event -> IO Bool) -> IO (ConnectId w) >> >> (...) > > (...) Maybe you're thinking of the 'after' > function (in contrast to the 'on' function) or, > equivalently, of the 'afterExpose' vs 'onExpose' > signals (for expose events). (...) > > This is explained under "Description" here: > > http://library.gnome.org/devel/gobject/stable/gobject-Signals.html > > (...) Exactly. I misunderstood how gtk2hs events connects to gtk+. After reading that page from your link and a few from gtk+ documentation, there's a detail I wasn't able to figure out: is there any difference between the Event sent to, for instance, onExpose and afterExpose? It seen to me that I could handle afterExpose instead of onExpose, but now I think that may not be true. Thanks, Maurício |