summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-05 08:46:04 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-05 10:37:10 +0200
commit5451380641a809b845503860f2bd05497b914151 (patch)
treeb36d467903b212e236c23084bbbd5f4b4c330230 /bin
parentuse more TOOLS_WARN_EXCEPTION (diff)
downloadcore-5451380641a809b845503860f2bd05497b914151.tar.gz
core-5451380641a809b845503860f2bd05497b914151.zip
lint-ui: fix GtkAdjustment check
Change-Id: Ie369cd67f2ac3947c2f4817fb76656216c6df2fe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103943 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/lint-ui.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/lint-ui.py b/bin/lint-ui.py
index 26c011f2637a..4f13320a23f3 100755
--- a/bin/lint-ui.py
+++ b/bin/lint-ui.py
@@ -98,11 +98,11 @@ def check_radio_buttons(root):
def check_adjustments(root):
adjustments = [element for element in root.findall('.//object') if element.attrib['class'] == 'GtkAdjustment']
- for adjusment in adjustments:
- uppers = radio.findall("./property[@name='upper']")
+ for adjustment in adjustments:
+ uppers = adjustment.findall("./property[@name='upper']")
assert len(uppers) <= 1
if len(uppers) < 1:
- lint_assert(False, "No upper in GtkAdjustment with id = '" + radio.attrib['id'] + "'", radio)
+ lint_assert(False, "No upper in GtkAdjustment with id = '" + adjustment.attrib['id'] + "'", adjustment)
def check_menu_buttons(root):
buttons = [element for element in root.findall('.//object') if element.attrib['class'] == "GtkMenuButton"]