Skip to content
Commit 9d669e2b authored by Carlos Garnacho's avatar Carlos Garnacho Committed by Philip Chimento
Browse files

object: Avoid setting construct properties multiple times

Construct-only properties may be defined several times in JS land
with different casings (snake, kebab, camel), but they all resolve
to the same GParamSpec.

For these cases, discard the redundant GParamSpec lookups when
collecting the value array for g_object_new_with_properties().

Fixes: https://gitlab.gnome.org/GNOME/gjs/-/issues/422
parent b4627874
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment