diff options
author | Povilas Kanapickas <povilas@radix.lt> | 2022-09-02 00:04:41 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-05 16:21:49 +0200 |
commit | 35319adcc28f197b73e146f9ba233e20616fd11f (patch) | |
tree | 41bf3dcd9461d15d5886cee77e4cf07a9fd51418 /vcl/unx | |
parent | 231342ef6a913f0a5c9dfea3bd28830e92a3fc98 (diff) |
vcl: Rename Swipe event to GestureSwipe
We have 5 gesture types: GestureZoom, GestureRotate, GesturePan, Swipe
and LongPress. For consistency all of these will use Gesture as a prefix
to reduce confusion and for easier grepping throughout the codebase.
Change-Id: I8b9e245d011203a19c1172f9833c172f65382caa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139243
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk3/gtkframe.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/gtk3/gtkframe.cxx b/vcl/unx/gtk3/gtkframe.cxx index 39ed25e1ffa8..3992672b479b 100644 --- a/vcl/unx/gtk3/gtkframe.cxx +++ b/vcl/unx/gtk3/gtkframe.cxx @@ -3427,14 +3427,14 @@ void GtkSalFrame::gestureSwipe(GtkGestureSwipe* gesture, gdouble velocity_x, gdo //within the same vcl window if (gtk_gesture_get_point(GTK_GESTURE(gesture), sequence, &x, &y)) { - SalSwipeEvent aEvent; + SalGestureSwipeEvent aEvent; aEvent.mnVelocityX = velocity_x; aEvent.mnVelocityY = velocity_y; aEvent.mnX = x; aEvent.mnY = y; GtkSalFrame* pThis = static_cast<GtkSalFrame*>(frame); - pThis->CallCallbackExc(SalEvent::Swipe, &aEvent); + pThis->CallCallbackExc(SalEvent::GestureSwipe, &aEvent); } } |