`clutter_content_get_preferred_size` is not annotated with optional out arguments.
See gjs#439 (closed)
I believe this is actually potentially a
mutter
(which embedsclutter
) bug and maybe a GJS issue too.Clutter is passing
NULL
to an out float parameter on a vfunc which is not marked asoptional
via the invoker.Calling with
NULL
here: https://github.com/GNOME/mutter/blob/7862f143937e43dca0513af3a24dabfb4d0db4fc/clutter/clutter/clutter-actor.c#L10154The incorrect annotations: https://github.com/GNOME/mutter/blob/7862f143937e43dca0513af3a24dabfb4d0db4fc/clutter/clutter/clutter-content.c#L340
I believe GTK does this correctly: https://gitlab.gnome.org/GNOME/gtk/-/blob/master/gtk/gtkcellarea.c#L2072
That said, I'm not sure if GJS is checking for optional arguments correctly for vfuncs, so I'm not sure fixing
mutter
/clutter
alone fixes this. Looking into that now.