diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-05-11 09:38:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-05-11 12:16:53 +0200 |
commit | 1965bd9645777d94d93d4caae799577af71039f8 (patch) | |
tree | 366516a3a1ebf8b60b1e53b43f30412c110d36be /vcl | |
parent | 71dd1d72358a862b4cf36d5014624ab9d8c8a402 (diff) |
gtk4: gtk_widget_set_focusable needed for GtkEventControllerFocus
worth mentioning in the docs
Change-Id: I635bff1e7cf416796f78173ce719ce01f6cf1e5f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115386
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk3/gtkframe.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtkframe.cxx b/vcl/unx/gtk3/gtkframe.cxx index 1d7ac5f965f3..b1f2becba4b2 100644 --- a/vcl/unx/gtk3/gtkframe.cxx +++ b/vcl/unx/gtk3/gtkframe.cxx @@ -1011,6 +1011,7 @@ void GtkSalFrame::InitCommon() GtkEventController* pFocusController = gtk_event_controller_focus_new(); g_signal_connect(pFocusController, "enter", G_CALLBACK(signalFocusEnter), this); g_signal_connect(pFocusController, "leave", G_CALLBACK(signalFocusLeave), this); + gtk_widget_set_focusable(pEventWidget, true); gtk_widget_add_controller(pEventWidget, pFocusController); #endif #if !GTK_CHECK_VERSION(4,0,0) |