diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-01-29 15:53:54 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-01-29 18:03:40 +0100 |
commit | 58c849a94234f18eac020be66117aa2378487e2f (patch) | |
tree | 787f6bbb428ea84a3b3d47c103d7bea39c0077e0 /bin | |
parent | c347a949786a2ae41740849480f16ecdc7d13f8a (diff) |
gtk4: remove unwanted caps-lock-warning from GtkSpinButton
Change-Id: I723b13a5b012a89379cf6984a2b0fdd44ae932f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129148
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ui-rules-enforcer.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/ui-rules-enforcer.py b/bin/ui-rules-enforcer.py index fcf2d0505b97..d39cb39c85aa 100755 --- a/bin/ui-rules-enforcer.py +++ b/bin/ui-rules-enforcer.py @@ -242,6 +242,22 @@ def remove_spin_button_input_purpose(current): if input_purpose != None: current.remove(input_purpose) +def remove_spin_button_caps_lock_warning(current): + caps_lock_warning = None + isspinbutton = current.get('class') == "GtkSpinButton" + for child in current: + remove_spin_button_caps_lock_warning(child) + if not isspinbutton: + 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 caps_lock_warning != None: + current.remove(caps_lock_warning) + def remove_spin_button_max_length(current): max_length = None isspinbutton = current.get('class') == "GtkSpinButton" @@ -600,6 +616,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_spin_button_max_length(root) remove_track_visited_links(root) remove_label_pad(root) |