# HG changeset patch # User Frank Benoit # Date 1207513448 -7200 # Node ID 997624cece6abd99d07185c5db848dcc14d4451a # Parent 8e159d7052e0a8d9dcfc12f17f68e03a0fa8b283 renames init() to init_() to avoid problems in tango collections in jface port diff -r 8e159d7052e0 -r 997624cece6a dwt/graphics/Color.d --- a/dwt/graphics/Color.d Sun Apr 06 22:22:44 2008 +0200 +++ b/dwt/graphics/Color.d Sun Apr 06 22:24:08 2008 +0200 @@ -79,7 +79,7 @@ public this(Device device, int red, int green, int blue) { if (device is null) device = Device.getDevice(); if (device is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); - init(device, red, green, blue); + init_(device, red, green, blue); if (device.tracking) device.new_Object(this); } @@ -109,7 +109,7 @@ if (device is null) device = Device.getDevice(); if (device is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); if (rgb is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); - init(device, rgb.red, rgb.green, rgb.blue); + init_(device, rgb.red, rgb.green, rgb.blue); if (device.tracking) device.new_Object(this); } @@ -250,7 +250,7 @@ return color; } -void init(Device device, int red, int green, int blue) { +void init_(Device device, int red, int green, int blue) { this.device = device; if ((red > 255) || (red < 0) || (green > 255) || (green < 0) || diff -r 8e159d7052e0 -r 997624cece6a dwt/graphics/Device.d --- a/dwt/graphics/Device.d Sun Apr 06 22:22:44 2008 +0200 +++ b/dwt/graphics/Device.d Sun Apr 06 22:24:08 2008 +0200 @@ -173,7 +173,7 @@ objects = new Object [128]; } create (data); - init (); + init_ (); register (this); /* Initialize the system font slot */ @@ -547,7 +547,7 @@ * * @see #create */ -protected void init () { +protected void init_ () { if (xDisplay !is null) { int event_basep, error_basep; if (OS.XRenderQueryExtension (xDisplay, &event_basep, &error_basep)) { diff -r 8e159d7052e0 -r 997624cece6a dwt/graphics/Font.d --- a/dwt/graphics/Font.d Sun Apr 06 22:22:44 2008 +0200 +++ b/dwt/graphics/Font.d Sun Apr 06 22:24:08 2008 +0200 @@ -74,7 +74,7 @@ if (device is null) device = Device.getDevice(); if (device is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); if (fd is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); - init(device, fd.getName(), fd.getHeightF(), fd.getStyle(), fd.str); + init_(device, fd.getName(), fd.getHeightF(), fd.getStyle(), fd.str); if (device.tracking) device.new_Object(this); } @@ -110,7 +110,7 @@ if (fds[i] is null) DWT.error(DWT.ERROR_INVALID_ARGUMENT); } FontData fd = fds[0]; - init(device,fd.getName(), fd.getHeightF(), fd.getStyle(), fd.str); + init_(device,fd.getName(), fd.getHeightF(), fd.getStyle(), fd.str); if (device.tracking) device.new_Object(this); } @@ -139,14 +139,14 @@ public this(Device device, char[] name, int height, int style) { if (device is null) device = Device.getDevice(); if (device is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); - init(device, name, height, style, null); + init_(device, name, height, style, null); if (device.tracking) device.new_Object(this); } /*public*/ this(Device device, char[] name, float height, int style) { if (device is null) device = Device.getDevice(); if (device is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); - init(device, name, height, style, null); + init_(device, name, height, style, null); if (device.tracking) device.new_Object(this); } @@ -252,7 +252,7 @@ return cast(hash_t)/*64*/handle; } -void init(Device device, char[] name, float height, int style, char[] fontString) { +void init_(Device device, char[] name, float height, int style, char[] fontString) { if (name is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); if (height < 0) DWT.error(DWT.ERROR_INVALID_ARGUMENT); this.device = device; diff -r 8e159d7052e0 -r 997624cece6a dwt/graphics/Image.d --- 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; diff -r 8e159d7052e0 -r 997624cece6a dwt/printing/Printer.d --- a/dwt/printing/Printer.d Sun Apr 06 22:22:44 2008 +0200 +++ b/dwt/printing/Printer.d Sun Apr 06 22:24:08 2008 +0200 @@ -651,8 +651,8 @@ * * @see #create */ -protected override void init() { - super.init (); +protected override void init_() { + super.init_ (); settings = OS.gtk_print_settings_new(); pageSetup = OS.gtk_page_setup_new(); if (data.otherData !is null) {