Signal GdkModifierState parameter marked as pointer in GTK3 docs
I'm not entirely sure if this is a gi-docgen bug, I'm sorry if I'm filling in the wrong component.
Incorrect
In GTK 3 docs: https://docs.gtk.org/gtk3/signal.EventControllerKey.key-pressed.html
The callback function signature includes a pointer symbol in the state
parameter. This is wrong.
gboolean
key_pressed (
GtkEventControllerKey* self,
guint keyval,
guint keycode,
GdkModifierType* state,
gpointer user_data
)
Link to GTK source: https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-24/gtk/gtkeventcontrollerkey.c#L163
Correct
In GTK 4 docs https://docs.gtk.org/gtk4/signal.EventControllerKey.key-pressed.html
gboolean
key_pressed (
GtkEventControllerKey* self,
guint keyval,
guint keycode,
GdkModifierType state,
gpointer user_data
)
Link to GTK source https://gitlab.gnome.org/GNOME/gtk/-/blob/master/gtk/gtkeventcontrollerkey.c#L192