vcl/unx/gtk3/gtk3gtkinst.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit b07d429f8610c4df93dffa72552f4f759ec0b74f
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Wed Mar 4 14:02:33 2020 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Wed Mar 4 17:44:24 2020 +0100

    leave focus where it came from for GtkMenuToolButtons
    
    Change-Id: I111aac99120ae2d3284f5c41a52cde718079a383
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89976
    Tested-by: Caolán McNamara <caol...@redhat.com>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index 99fc6205ad67..e8f827738f25 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -7471,6 +7471,10 @@ private:
         if (pMenuButton)
         {
             m_aMenuButtonMap[id] = 
std::make_unique<GtkInstanceMenuButton>(pMenuButton, m_pBuilder, false);
+            // so that, e.g. with focus initially in writer main document then
+            // after clicking the heading menu in the writer navigator focus is
+            // left in the main document and not in the toolbar
+            gtk_button_set_focus_on_click(GTK_BUTTON(pMenuButton), false);
             g_signal_connect(pMenuButton, "toggled", 
G_CALLBACK(signalItemToggled), this);
         }
         g_signal_connect(pToolItem, "clicked", G_CALLBACK(signalItemClicked), 
this);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to