javauis/eswt_qt/org.eclipse.swt/Eclipse SWT/qt/org/eclipse/swt/graphics/Image.java
--- a/javauis/eswt_qt/org.eclipse.swt/Eclipse SWT/qt/org/eclipse/swt/graphics/Image.java Mon Oct 04 11:29:25 2010 +0300
+++ b/javauis/eswt_qt/org.eclipse.swt/Eclipse SWT/qt/org/eclipse/swt/graphics/Image.java Fri Oct 15 12:29:39 2010 +0300
@@ -701,7 +701,7 @@
OS.QIcon_delete(icon);
}
- icon = OS.QIcon_new(cgImage.getNativePixmapHandle());
+ icon = OS.QIcon_swt_new(cgImage.getHandle());
return icon;
}
@@ -725,15 +725,6 @@
return cgImage.getHandle();
}
- /*
- * Returns OS specific pixmap handle.
- */
- int getPixmapHandle() {
- if(isDisposed())
- SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
- return cgImage.getNativePixmapHandle();
- }
-
/**
* Invokes platform specific functionality to allocate a new GC handle.
* <p>
@@ -758,7 +749,7 @@
if(data == null) {
SWT.error(SWT.ERROR_NULL_ARGUMENT);
}
- int paintDevice = OS.QPixmap_swt_paintDevice(cgImage.getNativePixmapHandle());
+ int paintDevice = cgImage.getQPainDeviceHandle();
if(OS.QPaintDevice_paintingActive(paintDevice)) {
SWT.error(SWT.ERROR_INVALID_ARGUMENT);
}