From 933464ad3cfc8af141d1035afbebdcceb6814bb7 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 25 Jan 2022 14:13:44 +0000 Subject: gtk4: deprecated GtkEntry shadow_type was removed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I378db5406c508e3672927905735449a3a1003e3c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128928 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- bin/ui-rules-enforcer.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'bin') 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) -- cgit