Gtk-4.0.gir Error: Gtk: identifier not found on the first line:

To test the Nim GTK4 bindings against latest GTK I do from time to time:

cd gtk
git pull
meson --prefix /opt/gtk builddir
ninja -C builddir
ninja -C builddir install

And I get these messages:

[842/1493] Generating Gtk-4.0.gir with a custom command
../gtk/gtkcolorchooserwidget.c:733: Error: Gtk: identifier not found on the first line:
   * GtkColorChooserWidget|color.select:
     ^
../gtk/gtkcolorchooserwidget.c:746: Error: Gtk: identifier not found on the first line:
   * GtkColorChooserWidget|color.customize:

and a dozen more “Gtk: identifier not found on the first line:”

I would not be concerned as after install GTK4 seems to work well, but the message is called ERROR. Do we have an idea for the reason?

You need the main development branch of gobject-introspection, which added support for the action notation.

Actions are part of the API, and they use a separate gtk-doc notation from properties (ClassName:property) and signals (ClassName::signal).

1 Like