forked from Mirrors/flatpak-builder
builder: Don't warn for unknown properties starting with x-
Fixes https://github.com/flatpak/flatpak/issues/809tingping/wmclass
parent
4a54450400
commit
333f308a2b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue