gtk2hs now is using EventM to deal with event. Well, it seems that
some functions do not work. Like the following, windowResize does not
win `on` exposeEvent $ do
liftIO $ do
windowResize win 300 300
From: Axel Simon <Axel.Simon@en...> - 2009-06-09 07:16:30
On Tue, 2009-06-09 at 11:34 +0800, Magicloud Magiclouds wrote:
> gtk2hs now is using EventM to deal with event. Well, it seems that
> some functions do not work. Like the following, windowResize does not
> effect anything....
> win `on` exposeEvent $ do
> liftIO $ do
> windowResize win 300 300
> return False
Did this work before? If you want your window to be of a specific size,
you should set widgetWidthRequest and widgetHeightRequest *before* you
realize/show the widget.
You might want to return True above. You should always return True if
you've done something in your callback handler. Otherwise any default
handler of Gtk+ will run which might undo the effect of your own signal
Get latest updates about Open Source Projects, Conferences and News.