summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Printing/cocoa
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2009-01-14 22:16:28 +0000
committerSilenio Quarti <silenio>2009-01-14 22:16:28 +0000
commiteeba1185dbb829d8b675f05bd50535207b30ecf7 (patch)
treee462a17afa2f2b08754ff43f0e4c288cb8f69f83 /bundles/org.eclipse.swt/Eclipse SWT Printing/cocoa
parent9a6939ddfeb0c7d1770c8dc6215052e361e90cb1 (diff)
downloadeclipse.platform.swt-eeba1185dbb829d8b675f05bd50535207b30ecf7.tar.gz
eclipse.platform.swt-eeba1185dbb829d8b675f05bd50535207b30ecf7.tar.xz
eclipse.platform.swt-eeba1185dbb829d8b675f05bd50535207b30ecf7.zip
Optimize caret blinking and widget drawing
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Printing/cocoa')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Printing/cocoa/org/eclipse/swt/printing/Printer.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Printing/cocoa/org/eclipse/swt/printing/Printer.java b/bundles/org.eclipse.swt/Eclipse SWT Printing/cocoa/org/eclipse/swt/printing/Printer.java
index 35014f3a8f..929cc9b2c1 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Printing/cocoa/org/eclipse/swt/printing/Printer.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Printing/cocoa/org/eclipse/swt/printing/Printer.java
@@ -46,8 +46,6 @@ public final class Printer extends Device {
NSWindow window;
boolean isGCCreated;
- static Callback IsFlipped;
-
static final String DRIVER = "Mac";
/**
@@ -224,9 +222,8 @@ protected void create(DeviceData deviceData) {
window.initWithContentRect(rect, OS.NSBorderlessWindowMask, OS.NSBackingStoreBuffered, false);
String className = "SWTPrinterView"; //$NON-NLS-1$
if (OS.objc_lookUpClass(className) == 0) {
- IsFlipped = new Callback(getClass(), "isFlipped", 2); //$NON-NLS-1$
int /*long*/ cls = OS.objc_allocateClassPair(OS.class_NSView, className, 0);
- OS.class_addMethod(cls, OS.sel_isFlipped, IsFlipped.getAddress(), "@:");
+ OS.class_addMethod(cls, OS.sel_isFlipped, OS.isFlipped_CALLBACK(), "@:");
OS.objc_registerClassPair(cls);
}
view = (NSView)new SWTPrinterView().alloc();
@@ -324,10 +321,6 @@ public void internal_dispose_GC(int /*long*/ context, GCData data) {
if (data != null) isGCCreated = false;
}
-static int /*long*/ isFlipped(int /*long*/ id, int /*long*/ sel) {
- return 1;
-}
-
/**
* Releases any internal state prior to destroying this printer.
* This method is called internally by the dispose