summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-01-25 14:13:44 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-01-25 16:24:17 +0100
commit933464ad3cfc8af141d1035afbebdcceb6814bb7 (patch)
treef5949dba4ad044dc6a0914b0a7740451f74aac67 /bin
parent142de90574ddb307f89e7595c7444cab5a7f49d9 (diff)
gtk4: deprecated GtkEntry shadow_type was removed
Change-Id: I378db5406c508e3672927905735449a3a1003e3c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128928 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ui-rules-enforcer.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/ui-rules-enforcer.py b/bin/ui-rules-enforcer.py
index c571e9748973..6fec6293244e 100755
--- a/bin/ui-rules-enforcer.py
+++ b/bin/ui-rules-enforcer.py
@@ -258,6 +258,22 @@ def remove_spin_button_max_length(current):
if max_length != None:
current.remove(max_length)
+def remove_entry_shadow_type(current):
+ shadow_type = None
+ isentry = current.get('class') == "GtkEntry"
+ for child in current:
+ remove_entry_shadow_type(child)
+ if not isentry:
+ continue
+ if child.tag == "property":
+ attributes = child.attrib
+ if attributes.get("name") == "shadow_type" or attributes.get("name") == "shadow-type":
+ shadow_type = child
+
+ if isentry:
+ if shadow_type!= None:
+ current.remove(shadow_type)
+
def remove_label_pad(current):
xpad = None
ypad = None
@@ -565,6 +581,7 @@ remove_expander_spacing(root)
enforce_menubutton_indicator_consistency(root)
enforce_active_in_group_consistency(root)
enforce_entry_text_column_id_column_for_gtkcombobox(root)
+remove_entry_shadow_type(root)
remove_double_buffered(root)
remove_skip_pager_hint(root)
remove_toolbutton_focus(root)