Boxed GVariantType is not nullable in GSimpleAction
According to the documentation of GSimpleAction
, you can supply either a GVariantType*
or NULL
for the state-type
and parameter-type
properties (https://gitlab.gnome.org/GNOME/glib/blob/master/gio/gsimpleaction.c#L507).
However, when a GValue
is to hold a GVariantType
, it will call g_variant_type_copy
at some point (https://gitlab.gnome.org/GNOME/glib/blob/b9aed426d198ccf27078263d982bb247c82ccaee/glib/gvarianttype.c#L330).
g_return_val_if_fail
will emit a critical warning in the logs, even though this should be perfectly fine.
cc: @sdroege
Edited by Philip Withnall