builder: Don't warn for unknown properties starting with x-

Fixes https://github.com/flatpak/flatpak/issues/809
tingping/wmclass
Alexander Larsson 2017-05-26 16:34:43 +02:00
parent 4a54450400
commit 333f308a2b
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}