File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -961,7 +961,7 @@ public final class GtkBackend: AppBackend {
961
961
gtkGesture = GestureClick ( )
962
962
case . secondary:
963
963
gtkGesture = GestureClick ( )
964
- gtk_gesture_single_set_button ( gtkGesture. opaquePointer, 3 )
964
+ gtk_gesture_single_set_button ( gtkGesture. opaquePointer, guint ( GDK_BUTTON_SECONDARY ) )
965
965
case . longPress:
966
966
gtkGesture = GestureLongPress ( )
967
967
}
@@ -978,7 +978,8 @@ public final class GtkBackend: AppBackend {
978
978
case . primary:
979
979
let gesture =
980
980
tapGestureTarget. eventControllers. first {
981
- $0 is GestureClick && gtk_gesture_single_get_button ( $0. opaquePointer) == 1
981
+ $0 is GestureClick
982
+ && gtk_gesture_single_get_button ( $0. opaquePointer) == GDK_BUTTON_PRIMARY
982
983
} as! GestureClick
983
984
gesture. pressed = { _, nPress, _, _ in
984
985
guard nPress == 1 else {
@@ -989,7 +990,9 @@ public final class GtkBackend: AppBackend {
989
990
case . secondary:
990
991
let gesture =
991
992
tapGestureTarget. eventControllers. first {
992
- $0 is GestureClick && gtk_gesture_single_get_button ( $0. opaquePointer) == 3
993
+ $0 is GestureClick
994
+ && gtk_gesture_single_get_button ( $0. opaquePointer)
995
+ == GDK_BUTTON_SECONDARY
993
996
} as! GestureClick
994
997
gesture. pressed = { _, nPress, _, _ in
995
998
guard nPress == 1 else {
Original file line number Diff line number Diff line change @@ -814,11 +814,12 @@ extension AppBackend {
814
814
todo ( )
815
815
}
816
816
817
- public func createTapGestureTarget( wrapping child: Widget ) -> Widget {
817
+ public func createTapGestureTarget( wrapping child: Widget , gesture : TapGesture ) -> Widget {
818
818
todo ( )
819
819
}
820
820
public func updateTapGestureTarget(
821
821
_ clickTarget: Widget ,
822
+ gesture: TapGesture ,
822
823
action: @escaping ( ) -> Void
823
824
) {
824
825
todo ( )
You can’t perform that action at this time.
0 commit comments