Online GTK3 documentation incorrect for signal.Widget.button-press-event
Documentation Page: https://docs.gtk.org/gtk3/signal.Widget.button-press-event.html Version: Current documentation page
This is DIFFERENT to documentation in the "GTK+ 3 Refernece Manual" distributed with Glade.
Declaration should read:
gboolean
button_press_event (
GtkWidget* self,
GdkEventButton *event, // <--- pointer missing
gpointer user_data
)
Instead, it reads:
gboolean
button_press_event (
GtkWidget* self,
GdkEventButton event,
gpointer user_data
)
(This will cause corruption in the user_data.)
There are similar issues with other signal event handler documentation.
- button-release-event and (with different event structures)
- configure-event
- damage-event
- enter-notify-event
- focus-in-event
- focus-out-event
- grab-broken-event
- key-press-event
- key-release-event
- leave-notify-event
- map-event
- motion-notify-event
- property-notify-event
- proximity-in-event
- proximity-out-event
- scroll-event
- selection-clear-event
- selection-notify-event
- selection-request-event
- unmap-event
- visibility-notify-event
- window-state-event
Edited by Paul Schulz