diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-01-26 17:39:26 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-01-26 20:56:36 +0100 |
commit | b9039e511ed103814dd3c2987c2e408aebb58058 (patch) | |
tree | 11832642de2177c2a41a3fb0c22e039b5868d829 /bin | |
parent | 47a863f09d1c1273dc0c00cc03719d322b00ddd4 (diff) |
ensure no 'angle' is used in a GtkLabel
Change-Id: Id6231774fb1a8d12e771815023e661d5e0ac06a0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129004
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ui-rules-enforcer.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/ui-rules-enforcer.py b/bin/ui-rules-enforcer.py index 6fec6293244e..5079d8e67ce1 100755 --- a/bin/ui-rules-enforcer.py +++ b/bin/ui-rules-enforcer.py @@ -294,6 +294,21 @@ def remove_label_pad(current): if ypad != None: current.remove(ypad) +def remove_label_angle(current): + angle = None + islabel = current.get('class') == "GtkLabel" + for child in current: + remove_label_angle(child) + if not islabel: + continue + if child.tag == "property": + attributes = child.attrib + if attributes.get("name") == "angle": + angle = child + + if angle != None: + current.remove(angle) + def remove_track_visited_links(current): track_visited_links = None islabel = current.get('class') == "GtkLabel" @@ -576,6 +591,7 @@ remove_spin_button_input_purpose(root) remove_spin_button_max_length(root) remove_track_visited_links(root) remove_label_pad(root) +remove_label_angle(root) remove_expander_label_fill(root) remove_expander_spacing(root) enforce_menubutton_indicator_consistency(root) |