Your method must match the signature of the signal. In the gtkmm documentation for signal_delete_event()
, the following prototype is given:
bool on_my_delete_event(GdkEventAny* event)
Using your naming, the method must be defined as follows:
bool GUIWindow::onExitClicked(GdkEventAny* event) { ... }
The return value is used to indicate whether or not you have completely handled the event. If you return true, other handlers for this event will not see it.