Mercurial > projects > dwt-mac
diff dwt/widgets/CoolItem.d @ 123:63a09873578e
Fixed compile errors
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Thu, 15 Jan 2009 23:08:54 +0100 |
parents | c7f7f4d7091a |
children | c41e13089a3c |
line wrap: on
line diff
--- a/dwt/widgets/CoolItem.d Wed Dec 31 21:01:13 2008 +0100 +++ b/dwt/widgets/CoolItem.d Thu Jan 15 23:08:54 2009 +0100 @@ -37,7 +37,7 @@ import dwt.widgets.ToolBar; import dwt.widgets.ToolItem; import dwt.widgets.TypedListener; - + /** * Instances of this class are selectable user interface * objects that represent the dynamically positionable @@ -281,7 +281,7 @@ ImageData imageData = new ImageData (width, height, 4, palette); imageData.transparentPixel = 1; Image image = new Image (display, imageData); - + GC gc = new GC (image, parent.getStyle() & DWT.RIGHT_TO_LEFT); gc.setBackground (background); gc.fillRectangle (0, 0, width, height); @@ -641,10 +641,10 @@ chevron = new ToolBar (parent, DWT.FLAT | DWT.NO_FOCUS); ToolItem toolItem = new ToolItem (chevron, DWT.PUSH); toolItem.addListener (DWT.Selection, new class () Listener { - public void handleEvent (Event event) { - this.outer.onSelection (event); - } - }); + public void handleEvent (Event event) { + this.outer.onSelection (event); + } + }); } int controlHeight, currentImageHeight = 0; if ((parent.style & DWT.VERTICAL) !is 0) { @@ -664,10 +664,10 @@ } chevron.setBackground (parent.getBackground()); chevron.setBounds (parent.fixRectangle ( - itemBounds.x + width - CHEVRON_LEFT_MARGIN - CHEVRON_IMAGE_WIDTH - CHEVRON_HORIZONTAL_TRIM, - itemBounds.y, - CHEVRON_IMAGE_WIDTH + CHEVRON_HORIZONTAL_TRIM, - height)); + itemBounds.x + width - CHEVRON_LEFT_MARGIN - CHEVRON_IMAGE_WIDTH - CHEVRON_HORIZONTAL_TRIM, + itemBounds.y, + CHEVRON_IMAGE_WIDTH + CHEVRON_HORIZONTAL_TRIM, + height)); chevron.setVisible(true); } else { if (chevron !is null) {