[113389] trunk/dports/x11/tk

ryandesign at macports.org ryandesign at macports.org
Thu Nov 14 16:54:06 PST 2013


Revision: 113389
          https://trac.macports.org/changeset/113389
Author:   ryandesign at macports.org
Date:     2013-11-14 16:54:06 -0800 (Thu, 14 Nov 2013)
Log Message:
-----------
tk: fix redraw issue on Mavericks (#41278)

Modified Paths:
--------------
    trunk/dports/x11/tk/Portfile

Added Paths:
-----------
    trunk/dports/x11/tk/files/patch-macosx-tkMacOSXDraw.c.diff

Modified: trunk/dports/x11/tk/Portfile
===================================================================
--- trunk/dports/x11/tk/Portfile	2013-11-14 23:46:56 UTC (rev 113388)
+++ trunk/dports/x11/tk/Portfile	2013-11-15 00:54:06 UTC (rev 113389)
@@ -4,6 +4,7 @@
 
 name            tk
 version         8.6.1
+revision        1
 categories      x11
 license         Tcl/Tk
 maintainers     mww openmaintainer
@@ -42,7 +43,8 @@
 worksrcdir      ${name}${version}/unix
 
 patch.dir           ${workpath}/${name}${version}
-patchfiles          patch-unix-Makefile.in.diff
+patchfiles          patch-macosx-tkMacOSXDraw.c.diff \
+                    patch-unix-Makefile.in.diff
 
 post-patch {
     reinplace s|@TCL_SRC_DIR@|${workpath}/tcl${version}/|g ${worksrcpath}/Makefile.in

Added: trunk/dports/x11/tk/files/patch-macosx-tkMacOSXDraw.c.diff
===================================================================
--- trunk/dports/x11/tk/files/patch-macosx-tkMacOSXDraw.c.diff	                        (rev 0)
+++ trunk/dports/x11/tk/files/patch-macosx-tkMacOSXDraw.c.diff	2013-11-15 00:54:06 UTC (rev 113389)
@@ -0,0 +1,16 @@
+https://core.tcl.tk/tk/info/5a5abf71f9
+--- macosx/tkMacOSXDraw.c.orig
++++ macosx/tkMacOSXDraw.c
+@@ -1686,10 +1686,11 @@
+ TkMacOSXRestoreDrawingContext(
+     TkMacOSXDrawingContext *dcPtr)
+ {
+     if (dcPtr->context) {
+ 	CGContextSynchronize(dcPtr->context);
++	[[dcPtr->view window] setViewsNeedDisplay:YES];
+ 	[[dcPtr->view window] enableFlushWindow];
+ 	if (dcPtr->focusLocked) {
+ 	    [dcPtr->view unlockFocus];
+ 	} else {
+ 	    CGContextRestoreGState(dcPtr->context);
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131114/9c6a4f7f/attachment.html>


More information about the macports-changes mailing list