sw/uiconfig/swriter/ui/wordcount-mobile.ui | 53 ++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-)
New commits: commit f5303b4b7e2afb231453468443d3aaba5b7bd4ef Author: Skyler Grey <[email protected]> AuthorDate: Thu Nov 21 15:01:59 2024 +0000 Commit: Skyler Grey <[email protected]> CommitDate: Fri Nov 22 19:03:29 2024 +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/+/176947 Tested-by: Skyler Grey <[email protected]> Reviewed-by: Skyler Grey <[email protected]> diff --git a/sw/uiconfig/swriter/ui/wordcount-mobile.ui b/sw/uiconfig/swriter/ui/wordcount-mobile.ui index a1bb1dfdf70b..cbef111d57b3 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>
