vcl/unx/gtk3/gtkframe.cxx | 2 ++ 1 file changed, 2 insertions(+) New commits: commit b37e6d2cbd2cfbd5c6eeba81415182c1c766de8f Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Aug 30 11:40:15 2022 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue Aug 30 13:52:10 2022 +0200
gtk4: connect the zoom and rotate gestures for gtk4 Change-Id: I9aec166cadcd7ae961ffbc390e0cddf9d8535a20 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139030 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/vcl/unx/gtk3/gtkframe.cxx b/vcl/unx/gtk3/gtkframe.cxx index a8b984608880..8c59eed10389 100644 --- a/vcl/unx/gtk3/gtkframe.cxx +++ b/vcl/unx/gtk3/gtkframe.cxx @@ -1024,6 +1024,7 @@ void GtkSalFrame::InitCommon() #if GTK_CHECK_VERSION(4,0,0) m_pZoomGesture = gtk_gesture_zoom_new(); + gtk_widget_add_controller(pEventWidget, GTK_EVENT_CONTROLLER(m_pZoomGesture)); #else m_pZoomGesture = gtk_gesture_zoom_new(GTK_WIDGET(pEventWidget)); #endif @@ -1037,6 +1038,7 @@ void GtkSalFrame::InitCommon() #if GTK_CHECK_VERSION(4,0,0) m_pRotateGesture = gtk_gesture_rotate_new(); + gtk_widget_add_controller(pEventWidget, GTK_EVENT_CONTROLLER(m_pRotateGesture)); #else m_pRotateGesture = gtk_gesture_rotate_new(GTK_WIDGET(pEventWidget)); #endif