builder-tool: Handle layout properties gracefully

If there are already layout properties in the ui
file, we shouldn't crash, even if --3to4 is given.
This commit is contained in:
Matthias Clasen 2019-04-06 00:48:24 +00:00
parent f950172731
commit 1fab3d9e20

View File

@ -438,6 +438,9 @@ get_class_name (Element *element)
if (g_str_equal (parent->element_name, "packing"))
parent = parent->parent->parent; /* child - object */
else if (g_str_equal (parent->element_name, "layout"))
parent = parent->parent->parent->parent; /* object - child - object */
if (g_str_equal (parent->element_name, "object"))
{