I’m using Giraffe to write a color picker for a button. According to the gtk documentation, when the user clicks this button, a color dialog box can pop up.
val button = getObject Gtk.ColorButtonClass.t builder "button1"
What I refer to is https://docs.gtk.org/gtk4/class.ColorDialogButton.html
Here is the sml file I wrote to store (Lines 24-25) https://github.com/captainLegoo/question_giraffe/blob/master/color_picker/colorPicker.sml
But I need to write an event listener for the button, which is not given in the gtk documentation. Where can I find relevant code examples or solutions.