summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-06-14 16:20:22 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-06-14 20:41:59 +0200
commitb1d6c3921002a15a8a34f7725b73ebaaa5bafe48 (patch)
tree14ecb9eddf82199c7d01bfff3e46e549bcfc3735 /bin
parent06b68ee5c14885ced8bc084ddf616de60468e757 (diff)
remove double-buffered properties
these are all fat fingered in somehow or another Change-Id: I0864a5622a244d5e60b368ddc425fc5a9b019060 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117176 Tested-by: Caolán McNamara <caolanm@redhat.com> 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 922631d739c3..984735d1a520 100755
--- a/bin/ui-rules-enforcer.py
+++ b/bin/ui-rules-enforcer.py
@@ -207,6 +207,18 @@ def remove_track_visited_links(current):
if track_visited_links != None:
current.remove(track_visited_links)
+def remove_double_buffered(current):
+ double_buffered = None
+ for child in current:
+ remove_double_buffered(child)
+ if child.tag == "property":
+ attributes = child.attrib
+ if attributes.get("name") == "double_buffered" or attributes.get("name") == "double-buffered":
+ double_buffered = child
+
+ if double_buffered != None:
+ current.remove(double_buffered)
+
def remove_label_fill(current):
label_fill = None
isexpander = current.get('class') == "GtkExpander"
@@ -309,6 +321,7 @@ remove_track_visited_links(root)
remove_label_fill(root)
enforce_menubutton_indicator_consistency(root)
enforce_active_in_group_consistency(root)
+remove_double_buffered(root)
with open(sys.argv[1], 'wb') as o:
# without encoding='unicode' (and the matching encode("utf8")) we get &#XXXX replacements for non-ascii characters