diff dwt/graphics/Image.d @ 216:997624cece6a

renames init() to init_() to avoid problems in tango collections in jface port
author Frank Benoit <benoit@tionex.de>
date Sun, 06 Apr 2008 22:24:08 +0200
parents 08789b28bdf3
children 380bad9f6852
line wrap: on
line diff
--- a/dwt/graphics/Image.d	Sun Apr 06 22:22:44 2008 +0200
+++ b/dwt/graphics/Image.d	Sun Apr 06 22:24:08 2008 +0200
@@ -194,7 +194,7 @@
 public this(Device device, int width, int height) {
     if (device is null) device = Device.getDevice();
     if (device is null) DWT.error(DWT.ERROR_NULL_ARGUMENT);
-    init(device, width, height);
+    init_(device, width, height);
     if (device.tracking) device.new_Object(this);
 }
 
@@ -396,7 +396,7 @@
     if (device is null) device = Device.getDevice();
     if (device is null) DWT.error(DWT.ERROR_NULL_ARGUMENT);
     if (bounds is null) DWT.error(DWT.ERROR_NULL_ARGUMENT);
-    init(device, bounds.width, bounds.height);
+    init_(device, bounds.width, bounds.height);
     if (device.tracking) device.new_Object(this);
 }
 
@@ -421,7 +421,7 @@
 public this(Device device, ImageData data) {
     if (device is null) device = Device.getDevice();
     if (device is null) DWT.error(DWT.ERROR_NULL_ARGUMENT);
-    init(device, data);
+    init_(device, data);
     if (device.tracking) device.new_Object(this);
 }
 
@@ -462,7 +462,7 @@
     ImageData image = new ImageData(source.width, source.height, source.depth, source.palette, source.scanlinePad, source.data);
     image.maskPad = mask.scanlinePad;
     image.maskData = mask.data;
-    init(device, image);
+    init_(device, image);
     if (device.tracking) device.new_Object(this);
 }
 
@@ -517,7 +517,7 @@
 public this(Device device, InputStream stream) {
     if (device is null) device = Device.getDevice();
     if (device is null) DWT.error(DWT.ERROR_NULL_ARGUMENT);
-    init(device, new ImageData(stream));
+    init_(device, new ImageData(stream));
     if (device.tracking) device.new_Object(this);
 }
 
@@ -591,7 +591,7 @@
             return;
         }
     } catch (DWTException e) {}
-    init(device, new ImageData(filename));
+    init_(device, new ImageData(filename));
     if (device.tracking) device.new_Object(this);
 }
 
@@ -967,7 +967,7 @@
     return cast(hash_t)/*64*/pixmap;
 }
 
-void init(Device device, int width, int height) {
+void init_(Device device, int width, int height) {
     if (width <= 0 || height <= 0) {
         DWT.error (DWT.ERROR_INVALID_ARGUMENT);
     }
@@ -991,7 +991,7 @@
     OS.gdk_colormap_free_colors(colormap, white, 1);
 }
 
-void init(Device device, ImageData image) {
+void init_(Device device, ImageData image) {
     if (image is null) DWT.error(DWT.ERROR_NULL_ARGUMENT);
     this.device = device;
     int width = image.width;