From: Maurício <bri...@ya...> - 2009-03-27 00:15:35
|
>>> I tried reading gobject (from gtk+ site) documentation >>> and it seems that signals and properties can be set >>> independent of the type of what they are beeing applied >>> to. So, if I try to connect to "clicked" on something >>> that is not a button, my callback will just never be >>> called. >> >> I would think one of the points of using Haskell in the first place >> is type safety.... >> > > Well, and it's not true that you can connect any signal on any > widget. The signals are specific to a widget and any widget that is > derived from it. This constraint is enforced by the class context. > What happens in Gtk+ if you try to connect to a signal a class doesn't emit? Maurício |