diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-12-22 13:14:42 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-12-22 21:05:43 +0100 |
commit | ad388fa57a0bb280c54998b416f6c6f5118ea9dc (patch) | |
tree | 70942ca59128210d3552b8f5c8e3cf8294cababe /bin/lint-ui.py | |
parent | 99062dba811edbded14c0472b241b1d8c99da712 (diff) |
state GtkAlignment is deprecated in lint-ui
Change-Id: I138d21ed6fdf4c07e77c3f096cdd7ac94c61c292
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108198
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'bin/lint-ui.py')
-rwxr-xr-x | bin/lint-ui.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/bin/lint-ui.py b/bin/lint-ui.py index 111fa3e18b21..7bbf46a2a113 100755 --- a/bin/lint-ui.py +++ b/bin/lint-ui.py @@ -139,12 +139,8 @@ def check_frames(root): frames = [element for element in root.findall('.//object') if element.attrib['class'] == 'GtkFrame'] for frame in frames: frame_alignments = frame.findall("./child/object[@class='GtkAlignment']") - assert len(frame_alignments) <= 1 - if len(frame_alignments) < 1: - lint_assert(False, "No GtkAlignment in GtkFrame with id = '" + frame.attrib['id'] + "'", frame) - if len(frame_alignments) == 1: - alignment = frame_alignments[0] - check_alignment_top_padding(alignment) + if len(frame_alignments) > 0: + lint_assert(False, "Deprecated GtkAlignment in GtkFrame with id = '" + frame.attrib['id'] + "'", frame) def check_alignment_top_padding(alignment): top_padding_properties = alignment.findall("./property[@name='top_padding']") |