From: Axel S. <Axe...@in...> - 2014-10-30 06:32:56
|
Hi Norbert, On 29.10.2014, at 22:37, Norbert Zeh <nz...@cs...> 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 > Gtk...@li... > https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel |