sw/uiconfig/swriter/ui/wordcount-mobile.ui | 53 ++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-)
New commits: commit 6f8516d055a2c9d995b24729d64ea8f2adfdacb2 Author: Skyler Grey <skyler.g...@collabora.com> AuthorDate: Thu Nov 21 15:01:59 2024 +0000 Commit: Aron Budea <aron.bu...@collabora.com> CommitDate: Thu Feb 13 01:52:07 2025 +0100 fix(wordcount): Add docComments on mobile In I29ca811065cce83f9c8630f79a2b78c2c3fe0da1, we added a widget for docComments to the word counter UI. Unfortunately, we didn't properly handle the mobile case, leading to mobile crashing over it missing the label to display the result whenever the word count dialog was opened. Change-Id: Ib94c8db5beb88d0b71035081680ce25a74774d08 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176945 Reviewed-by: Szymon Kłos <szymon.k...@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> (cherry picked from commit a9f87065f2725a467d60b49fff6a1b21a14aa0f7) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181502 Reviewed-by: Aron Budea <aron.bu...@collabora.com> Tested-by: Jenkins diff --git a/sw/uiconfig/swriter/ui/wordcount-mobile.ui b/sw/uiconfig/swriter/ui/wordcount-mobile.ui index de6ef6f5e9cd..82b488cbbe7c 100644 --- a/sw/uiconfig/swriter/ui/wordcount-mobile.ui +++ b/sw/uiconfig/swriter/ui/wordcount-mobile.ui @@ -58,7 +58,7 @@ </packing> </child> <child> - <!-- n-columns=2 n-rows=12 --> + <!-- n-columns=2 n-rows=13 --> <object class="GtkGrid" id="grid1"> <property name="visible">True</property> <property name="can-focus">False</property> @@ -631,6 +631,57 @@ <property name="top-attach">8</property> </packing> </child> + <child> + <object class="GtkBox"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="orientation">vertical</property> + <child> + <object class="GtkLabel" id="commentslabel"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="label" translatable="yes" context="wordcount-mobile|comments">Comments</property> + <property name="xalign">1</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + </object> + <packing> + <property name="left-attach">0</property> + <property name="top-attach">12</property> + </packing> + </child> + <child> + <object class="GtkBox"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="orientation">vertical</property> + <child> + <object class="GtkLabel" id="docComments"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="halign">end</property> + <property name="hexpand">True</property> + <property name="label"> 0</property> + <property name="justify">right</property> + <property name="xalign">1</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + </object> + <packing> + <property name="left-attach">1</property> + <property name="top-attach">12</property> + </packing> + </child> <child> <placeholder/> </child>