Discussion:
[Gtk2hs-users] Gtk3 support in Gtk2Hs
Antonin Delpeuch (lists)
2014-05-10 19:37:43 UTC
Permalink
Hi all,

I am trying to use Gtk3 through Gtk2Hs. It looks like the example code
http://projects.haskell.org/gtk2hs/documentation/#hello_world
has been written for Gtk2 and is not valid for Gtk3 anymore, because
the function onDestroy is undefined.

What would be the equivalent of this example code for Gtk3?

Cheers,
Antonin
koral
2014-05-10 20:13:44 UTC
Permalink
Hello,

I had the same problem when executing the demo code from webkitgtk3.
-- gtk2
aWidget `onDestroy` doSomething
-- gtk3
aWidget `on` deleteEvent doSomething
Cheers.

-- koral
Antonin Delpeuch (lists)
2014-05-10 22:05:36 UTC
Permalink
Thanks! The line

on window objectDestroy mainQuit

does the job.

Antonin
Post by koral
Hello,
I had the same problem when executing the demo code from webkitgtk3.
-- gtk2
aWidget `onDestroy` doSomething
-- gtk3
aWidget `on` deleteEvent doSomething
Cheers.
-- koral
Loading...