diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-09-07 09:32:36 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-09-07 15:05:37 +0200 |
commit | 980c3721f0eb7665a2af5d7d5c363f8b5d0c3152 (patch) | |
tree | ac0732950c5faf9b5067de1bb722971b4b4024f0 /bin | |
parent | ddca05e0b38ebf113cec8f8803b4640fee50db69 (diff) |
gtk4: caps-lock-warning is gone as a property
Change-Id: I66aac55f0ebb381bc2f9f1fffbdb887d4a016005
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139588
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ui-rules-enforcer.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/ui-rules-enforcer.py b/bin/ui-rules-enforcer.py index 6f2d56bf935f..8c222793d700 100755 --- a/bin/ui-rules-enforcer.py +++ b/bin/ui-rules-enforcer.py @@ -242,19 +242,19 @@ def remove_spin_button_input_purpose(current): if input_purpose != None: current.remove(input_purpose) -def remove_spin_button_caps_lock_warning(current): +def remove_caps_lock_warning(current): caps_lock_warning = None - isspinbutton = current.get('class') == "GtkSpinButton" + iscandidate = current.get('class') == "GtkSpinButton" or current.get('class') == "GtkEntry" for child in current: - remove_spin_button_caps_lock_warning(child) - if not isspinbutton: + remove_caps_lock_warning(child) + if not iscandidate: continue if child.tag == "property": attributes = child.attrib if attributes.get("name") == "caps_lock_warning" or attributes.get("name") == "caps-lock-warning": caps_lock_warning = child - if isspinbutton: + if iscandidate: if caps_lock_warning != None: current.remove(caps_lock_warning) @@ -628,7 +628,7 @@ remove_check_button_align(root) remove_check_button_relief(root) remove_check_button_image_position(root) remove_spin_button_input_purpose(root) -remove_spin_button_caps_lock_warning(root) +remove_caps_lock_warning(root) remove_spin_button_max_length(root) remove_track_visited_links(root) remove_label_pad(root) |