summaryrefslogtreecommitdiff
path: root/bin/lint-ui.py
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-07 13:36:48 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-07 18:43:07 +0200
commitb03708252bb50dd2fbca0f82fa170e6d90816b82 (patch)
tree05e5a5f4b7bf65a81215142645d2cd708cf62550 /bin/lint-ui.py
parentcc1ef0b3dc1449242c23e3c3299c2f7bb803821d (diff)
lint-ui: add exclusion
Change-Id: Idae99392593c87c7d3b36e426c8d1363434786be Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104059 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'bin/lint-ui.py')
-rwxr-xr-xbin/lint-ui.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/lint-ui.py b/bin/lint-ui.py
index 0518bd5a7da4..84916229c9a0 100755
--- a/bin/lint-ui.py
+++ b/bin/lint-ui.py
@@ -122,7 +122,10 @@ def check_menu_buttons(root):
images = button.findall("./property[@name='image']")
assert(len(labels) <= 1)
if len(labels) < 1 and len(images) < 1:
- lint_assert(False, "No label in GtkMenuButton with id = '" + button.attrib['id'] + "'", button)
+ if sys.argv[1] == "vcl/uiconfig/ui/combobox.ui": and button.attrib['id'] == "overlaybutton":
+ pass
+ else:
+ lint_assert(False, "No label in GtkMenuButton with id = '" + button.attrib['id'] + "'", button)
def check_check_buttons(root):
radios = [element for element in root.findall('.//object') if element.attrib['class'] == 'GtkCheckButton']