I'm converting a Haskell program written with Gtk2Hs gtk2 to Gtk2Hs gtk3 and I'm looking the equivalent function of Gtk2Hs gtk2 for:
onActivateLeaf
to catch the activation of a menu item.
onExpose
to draw in a widget.
onClicked
to catch the clicked event of a button.
onDestroy
to catch the destroy event of a Widget.
I had a look at these function in the documentation but they are used to send a signal not to catch one.
menuItemActivate
buttonClicked
widgetDestroy
Can you tell me the right way to catch event for widget with the Gtk2Hs gtk3 API ?
CodePudding user response:
I'm not 100% sure, but I would start by checking these:
The on
prefixes have been done away with in favor of a single function named on
.