mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-18 21:55:22 -04:00
builder: Don't warn for unknown properties starting with x-
Fixes https://github.com/flatpak/flatpak/issues/809
This commit is contained in:
@@ -1700,7 +1700,8 @@ builder_serializable_find_property_with_error (JsonSerializable *serializable,
|
||||
const char *name)
|
||||
{
|
||||
GParamSpec *pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (serializable), name);
|
||||
if (pspec == NULL)
|
||||
if (pspec == NULL &&
|
||||
!g_str_has_prefix (name, "x-"))
|
||||
g_warning ("Unknown property %s for type %s\n", name, g_type_name_from_instance ((GTypeInstance *)serializable));
|
||||
return pspec;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user