svtools/uiconfig/ui/restartdialog.ui |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit a84f4ef9a8694769fc942774bcf992de3a6abc88
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Fri Oct 18 15:14:21 2024 +0200
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Fri Oct 18 18:59:30 2024 +0200

    svtools a11y: Set underline/mnemonic char for "Restart" dialog
    
    Set the "use-underline" property for the buttons in the
    "Restart %PRODUCTNAME" dialog and specify the accelerators.
    
    This way, the dialog can easily be closed using Alt+[accelerator]
    with the gtk3 and qt5/qt6 VCL plugin as well.
    
    Use those characters that the VCL logic was using as well.
    (The VCL implementation seems to have some way to auto-generate
    mnemonic characters if none is set automatically.)
    
    This dialog is e.g. seen when toggling experimental mode in
    "Tools" -> "Options" and closing the options dialog with the
    "OK" button.
    
    Change-Id: I50c3402fb89d5fbfc0e610c0e41f5f035cf0b0e1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175137
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>

diff --git a/svtools/uiconfig/ui/restartdialog.ui 
b/svtools/uiconfig/ui/restartdialog.ui
index 92115e04d815..a25cca14cd8c 100644
--- a/svtools/uiconfig/ui/restartdialog.ui
+++ b/svtools/uiconfig/ui/restartdialog.ui
@@ -23,12 +23,13 @@
             <property name="layout-style">end</property>
             <child>
               <object class="GtkButton" id="yes">
-                <property name="label" translatable="yes" 
context="restartdialog|yes">Restart Now</property>
+                <property name="label" translatable="yes" 
context="restartdialog|yes">_Restart Now</property>
                 <property name="visible">True</property>
                 <property name="can-focus">True</property>
                 <property name="can-default">True</property>
                 <property name="has-default">True</property>
                 <property name="receives-default">True</property>
+                <property name="use-underline">True</property>
               </object>
               <packing>
                 <property name="expand">False</property>
@@ -38,10 +39,11 @@
             </child>
             <child>
               <object class="GtkButton" id="no">
-                <property name="label" translatable="yes" 
context="restartdialog|no">Restart Later</property>
+                <property name="label" translatable="yes" 
context="restartdialog|no">Restart _Later</property>
                 <property name="visible">True</property>
                 <property name="can-focus">True</property>
                 <property name="receives-default">True</property>
+                <property name="use-underline">True</property>
               </object>
               <packing>
                 <property name="expand">False</property>

Reply via email to