mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
builder-tool: Fix property check
Embarrassingly, there was a missing else causing us to check all packing properties as object properties, never finding them.
This commit is contained in:
parent
65ff19d149
commit
28be1c5d3a
@ -500,7 +500,7 @@ property_can_be_omitted (Element *element,
|
||||
|
||||
if (g_str_equal (element->parent->element_name, "packing"))
|
||||
kind = PROP_KIND_PACKING;
|
||||
if (g_str_equal (element->parent->element_name, "cell-packing"))
|
||||
else if (g_str_equal (element->parent->element_name, "cell-packing"))
|
||||
kind = PROP_KIND_CELL_PACKING;
|
||||
else
|
||||
kind = PROP_KIND_OBJECT;
|
||||
@ -522,7 +522,8 @@ property_can_be_omitted (Element *element,
|
||||
property_name = (const gchar *)element->attribute_values[i];
|
||||
}
|
||||
|
||||
if (keep_for_rewrite (class_name, property_name, kind))
|
||||
if (data->convert3to4 &&
|
||||
keep_for_rewrite (class_name, property_name, kind))
|
||||
return FALSE; /* keep, will be rewritten */
|
||||
|
||||
if (translatable)
|
||||
|
Loading…
Reference in New Issue
Block a user