enthought/enable — pull request #55 by RobinD42 (2012-06-26 00:28:49+00:00)
Title: Use dc.GetCGContext if available

The wx.DC class has a GetCGContext method that returns the same value that kiva's macport extension module returns, rendering that extension obsolete. The GetCGContext method is available in wx 2.8 and 2.9, and using it works in both Carboon ans Cocoa builds, including 64-bit. This patch changes mac_getport() to use GetCGContext if it's available, and disables the building of the macport extension if building for wx 2.8+.