[147474] trunk/dports/gnome/gtk3
devans at macports.org
devans at macports.org
Tue Apr 5 00:45:02 PDT 2016
Revision: 147474
https://trac.macports.org/changeset/147474
Author: devans at macports.org
Date: 2016-04-05 00:45:01 -0700 (Tue, 05 Apr 2016)
Log Message:
-----------
gtk3: add quick-and-dirty patch to quartz backend to allow touch pad pinch gestures only on 10.8+ due to build failure on 10.7 (#51052).
Modified Paths:
--------------
trunk/dports/gnome/gtk3/Portfile
Added Paths:
-----------
trunk/dports/gnome/gtk3/files/patch-gdk_quartz_gdkevents-quartz-10_7_compat.diff
Modified: trunk/dports/gnome/gtk3/Portfile
===================================================================
--- trunk/dports/gnome/gtk3/Portfile 2016-04-05 06:50:53 UTC (rev 147473)
+++ trunk/dports/gnome/gtk3/Portfile 2016-04-05 07:45:01 UTC (rev 147474)
@@ -57,6 +57,10 @@
patchfiles nawk.patch
+# temporary fix for https://trac.macports.org/ticket/51052
+# only allow touchpad pinch gestures (magnify, rotate) on 10.8+ due to missing NSEventPhaseMayBegin enum on 10.7
+patchfiles-append patch-gdk_quartz_gdkevents-quartz-10_7_compat.diff
+
# gtk3 +quartz uses instancetype which is not available
# before approximately Xcode 4.6 (#49391)
Added: trunk/dports/gnome/gtk3/files/patch-gdk_quartz_gdkevents-quartz-10_7_compat.diff
===================================================================
--- trunk/dports/gnome/gtk3/files/patch-gdk_quartz_gdkevents-quartz-10_7_compat.diff (rev 0)
+++ trunk/dports/gnome/gtk3/files/patch-gdk_quartz_gdkevents-quartz-10_7_compat.diff 2016-04-05 07:45:01 UTC (rev 147474)
@@ -0,0 +1,20 @@
+--- gdk/quartz/gdkevents-quartz.c.orig 2016-04-05 00:03:05.000000000 -0700
++++ gdk/quartz/gdkevents-quartz.c 2016-04-05 00:09:49.000000000 -0700
+@@ -906,7 +906,7 @@
+ such that PINCH(STARTED), PINCH(UPDATE).... will not show a second
+ PINCH(STARTED) event.
+ */
+-#ifdef AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER
++#ifdef AVAILABLE_MAC_OS_X_VERSION_10_8_AND_LATER
+ static void
+ fill_pinch_event (GdkWindow *window,
+ GdkEvent *event,
+@@ -1647,7 +1647,7 @@
+ }
+ }
+ break;
+-#ifdef AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER
++#ifdef AVAILABLE_MAC_OS_X_VERSION_10_8_AND_LATER
+ case NSEventTypeMagnify:
+ case NSEventTypeRotate:
+ /* Event handling requires [NSEvent phase] which was introduced in 10.7 */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160405/4a99d3fc/attachment-0001.html>
More information about the macports-changes
mailing list