summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-01-29 16:00:12 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-01-29 20:20:23 +0100
commit28e76f61ff3bb3d99329dc4157f5290d779402d9 (patch)
treef6fcaa6814681d950781b5f4d99400a8cfb2f132 /bin
parentd5d49b49abb7284e95758d6831784824b127faa0 (diff)
gtk4: remove stray label_yalign
Change-Id: Ia1eb3fe4fac9511c4d0b531bdbc722e420a96f1e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129150 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ui-rules-enforcer.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/ui-rules-enforcer.py b/bin/ui-rules-enforcer.py
index d39cb39c85aa..6f2d56bf935f 100755
--- a/bin/ui-rules-enforcer.py
+++ b/bin/ui-rules-enforcer.py
@@ -368,6 +368,18 @@ def remove_double_buffered(current):
if double_buffered != None:
current.remove(double_buffered)
+def remove_label_yalign(current):
+ label_yalign = None
+ for child in current:
+ remove_label_yalign(child)
+ if child.tag == "property":
+ attributes = child.attrib
+ if attributes.get("name") == "label_yalign" or attributes.get("name") == "label-yalign":
+ label_yalign = child
+
+ if label_yalign != None:
+ current.remove(label_yalign)
+
def remove_skip_pager_hint(current):
skip_pager_hint = None
for child in current:
@@ -628,6 +640,7 @@ enforce_active_in_group_consistency(root)
enforce_entry_text_column_id_column_for_gtkcombobox(root)
remove_entry_shadow_type(root)
remove_double_buffered(root)
+remove_label_yalign(root)
remove_skip_pager_hint(root)
remove_gravity(root)
remove_toolbutton_focus(root)