Gdk.ModifierType missing in

GJS API document for Gdk shipped with GTK4 is currently missing reference for Gdk.ModifierType.

I understand its C-level definition has moved from /usr/include/gtk-3.0/gdk/gdktypes.hto /usr/include/gtk-4.0/gdk/gdkenums.h. Maybe this caused problem for API document generation.

As I use Gdk/GTK4 with gjs, I can access things such as Gdk.ModifierType.SHIFT_MASK, GObject introspection can find moved content OK. So this is only a API document generation issue. Where should I report this or which code repo should I read to find out how API docs are generated.

FYI: I came across this while creating GNOME shell extension:

1 Like

Thanks, we have a report open for this, but if you find any more please add them to this issue: Missing documentation pages (#51) Β· Issues Β· GNOME / devdocsgjs Β· GitLab

I haven’t discovered the cause yet, but this seems to only happen with enumerations and flags that have odd entries or gaps like Gdk.ModifierType.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.