Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f20ee93

Browse files
committed
Issue #19373: merge from 3.3
2 parents bb4b0aa + 94764b2 commit f20ee93

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

Mac/BuildScript/build-installer.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ def library_recipes():
215215
name="Tk 8.5.15",
216216
url="ftp://ftp.tcl.tk/pub/tcl//tcl8_5/tk8.5.15-src.tar.gz",
217217
checksum='55b8e33f903210a4e1c8bce0f820657f',
218+
patches=[
219+
"issue19373_tk_8_5_15_source.patch",
220+
],
218221
buildDir="unix",
219222
configure_pre=[
220223
'--enable-aqua',
@@ -797,8 +800,6 @@ def buildRecipe(recipe, basedir, archList):
797800

798801
workDir = extractArchive(buildDir, sourceArchive)
799802
os.chdir(workDir)
800-
if 'buildDir' in recipe:
801-
os.chdir(recipe['buildDir'])
802803

803804
for patch in recipe.get('patches', ()):
804805
if isinstance(patch, tuple):
@@ -825,6 +826,9 @@ def buildRecipe(recipe, basedir, archList):
825826
runCommand('sh %s' % shellQuote(fn))
826827
os.unlink(fn)
827828

829+
if 'buildDir' in recipe:
830+
os.chdir(recipe['buildDir'])
831+
828832
if configure is not None:
829833
configure_args = [
830834
"--prefix=/usr/local",
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Issue #19373: Patch to Tk 8.5.15 to correct refresh problem on OS x 10.9.
2+
From upstream checkin https://core.tcl.tk/tk/info/5a5abf71f9
3+
4+
--- tk8.5.15/macosx/tkMacOSXDraw.c 2013-09-16 09:41:21.000000000 -0700
5+
+++ Tk_Source_Code-5a5abf71f9fdb0da/macosx/tkMacOSXDraw.c 2013-10-27 13:27:00.000000000 -0700
6+
@@ -1688,6 +1688,7 @@
7+
{
8+
if (dcPtr->context) {
9+
CGContextSynchronize(dcPtr->context);
10+
+ [[dcPtr->view window] setViewsNeedDisplay:YES];
11+
[[dcPtr->view window] enableFlushWindow];
12+
if (dcPtr->focusLocked) {
13+
[dcPtr->view unlockFocus];

0 commit comments

Comments
 (0)