2

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 ?

JeanJouX
  • 2,555
  • 1
  • 25
  • 37

1 Answers1

2

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.

Daniel Wagner
  • 145,880
  • 9
  • 220
  • 380