summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-09-07 09:32:36 +0100
committerMiklos Vajna <vmiklos@collabora.com>2022-09-09 16:40:15 +0200
commit425cfd785337b9087d083904f3ff07db0f186a83 (patch)
tree9bfeaf1068f15068fb52fcd052ece5c7b83de01b
parentevery other .ui is version="3.20" (diff)
downloadcore-425cfd785337b9087d083904f3ff07db0f186a83.tar.gz
core-425cfd785337b9087d083904f3ff07db0f186a83.zip
gtk4: caps-lock-warning is gone as a property
Change-Id: I66aac55f0ebb381bc2f9f1fffbdb887d4a016005 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139559 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
-rwxr-xr-xbin/ui-rules-enforcer.py12
-rw-r--r--sfx2/uiconfig/ui/commandpopup.ui1
2 files changed, 6 insertions, 7 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)
diff --git a/sfx2/uiconfig/ui/commandpopup.ui b/sfx2/uiconfig/ui/commandpopup.ui
index 9630f2994cf9..08e82423e394 100644
--- a/sfx2/uiconfig/ui/commandpopup.ui
+++ b/sfx2/uiconfig/ui/commandpopup.ui
@@ -31,7 +31,6 @@
<object class="GtkEntry" id="command_entry">
<property name="visible">True</property>
<property name="can-focus">True</property>
- <property name="caps-lock-warning">False</property>
<property name="truncate-multiline">True</property>
<property name="placeholder-text" translatable="yes" context="commandpopup|entry">Search command</property>
</object>