summaryrefslogtreecommitdiff
path: root/vcl/inc/unx/gtk/gtkframe.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-05-10 16:03:18 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-05-10 17:56:45 +0200
commiteabdf3bfce20513b3650766836f7d141fa088bfd (patch)
tree2a9169d2cb8352ee5f919dd72d70756ad4143221 /vcl/inc/unx/gtk/gtkframe.hxx
parent2947ae712ff0e21fd9c1c32a0926284f2b87d4a7 (diff)
gtk4: add focus-in/out
Change-Id: Ia954b2b1cc0ea368a318549f39e2efab42a0ebb2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115339 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/inc/unx/gtk/gtkframe.hxx')
-rw-r--r--vcl/inc/unx/gtk/gtkframe.hxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/vcl/inc/unx/gtk/gtkframe.hxx b/vcl/inc/unx/gtk/gtkframe.hxx
index 56ef0fce5262..94f54989b323 100644
--- a/vcl/inc/unx/gtk/gtkframe.hxx
+++ b/vcl/inc/unx/gtk/gtkframe.hxx
@@ -281,8 +281,14 @@ class GtkSalFrame final : public SalFrame
static void gestureReleased(GtkGestureClick* gesture, int n_press, gdouble x, gdouble y, gpointer frame);
void gestureButton(GtkGestureClick* gesture, SalEvent nEventType, gdouble x, gdouble y);
#endif
-#if !GTK_CHECK_VERSION(4, 0, 0)
+ void DrawingAreaFocusInOut(SalEvent nEventType);
+#if GTK_CHECK_VERSION(4, 0, 0)
+ static void signalFocusEnter(GtkEventControllerFocus* pController, gpointer frame);
+ static void signalFocusLeave(GtkEventControllerFocus* pController, gpointer frame);
+#else
static gboolean signalFocus( GtkWidget*, GdkEventFocus*, gpointer );
+#endif
+#if !GTK_CHECK_VERSION(4, 0, 0)
static void signalSetFocus( GtkWindow* pWindow, GtkWidget* pWidget, gpointer frame );
#endif
void WindowMap();