Hi Norbert,

On 29.10.2014, at 22:37, Norbert Zeh <n...@cs.dal.ca> wrote:

> Hi folks,
> 
> I just tried to connect to the sizeAllocate signal of the Widget type, but 
> the type of this signal is Signal self (Allocation -> IO ()).  Thus, the 
> function I provide as an argument needs to take an Allocation as an argument, 
> but I cannot declare a function of this type because Allocation seems to be 
> only exported by the hidden module Graphics.UI.Gtk.General.Structs.  Any 
> advice on how to react to sizeAllocate signals?
> 

Well, it’s a bug, it should be exported from Widget. However, it’s only a type 
synonym to Rectangle which is public, so using the Rectangle constructor should 
be possible.

Cheers,
Axel

> Thanks,
> Norbert
> ------------------------------------------------------------------------------
> _______________________________________________
> Gtk2hs-devel mailing list
> Gtk2hs-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

------------------------------------------------------------------------------
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to