[Libreoffice-commits] core.git: vcl/unx

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Jun 1 07:47:31 UTC 2021


 vcl/unx/gtk3/gtkinst.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 96c327049e5c012746c991d16042423b99624f50
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon May 31 20:42:57 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Jun 1 09:46:44 2021 +0200

    gtk4: enter/leave signals are on the event controller, not the widget
    
    Change-Id: I44bc2e494183de35b5f1f25813af2a5e51cbc69d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116503
    Tested-by: Caolán McNamara <caolanm at redhat.com>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index 350fc8f9c3d8..e3dfb747c06b 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -17620,8 +17620,8 @@ public:
             m_nEntryInsertTextSignalId = g_signal_connect(m_pEditable, "insert-text", G_CALLBACK(signalEntryInsertText), this);
             m_nEntryActivateSignalId = g_signal_connect(m_pEntry, "activate", G_CALLBACK(signalEntryActivate), this);
             m_pEntryFocusController = GTK_EVENT_CONTROLLER(gtk_event_controller_focus_new());
-            m_nEntryFocusInSignalId = g_signal_connect(m_pEntry, "enter", G_CALLBACK(signalEntryFocusIn), this);
-            m_nEntryFocusOutSignalId = g_signal_connect(m_pEntry, "leave", G_CALLBACK(signalEntryFocusOut), this);
+            m_nEntryFocusInSignalId = g_signal_connect(m_pEntryFocusController, "enter", G_CALLBACK(signalEntryFocusIn), this);
+            m_nEntryFocusOutSignalId = g_signal_connect(m_pEntryFocusController, "leave", G_CALLBACK(signalEntryFocusOut), this);
             gtk_widget_add_controller(m_pEntry, m_pEntryFocusController);
             m_pEntryKeyController = GTK_EVENT_CONTROLLER(gtk_event_controller_key_new());
             m_nEntryKeyPressEventSignalId = g_signal_connect(m_pEntryKeyController, "key-pressed", G_CALLBACK(signalEntryKeyPress), this);


More information about the Libreoffice-commits mailing list