Mercurial > projects > dwt-win
comparison dwt/custom/TableTreeItem.d @ 213:36f5cb12e1a2
Update to SWT 3.4M7
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 17 May 2008 17:34:28 +0200 |
parents | ab60f3309436 |
children | a59d51c12b42 |
comparison
equal
deleted
inserted
replaced
212:ab60f3309436 | 213:36f5cb12e1a2 |
---|---|
204 * the +/- images to be scaled. The fix is to insert a dummy | 204 * the +/- images to be scaled. The fix is to insert a dummy |
205 * image to force the size. | 205 * image to force the size. |
206 */ | 206 */ |
207 if (parent.sizeImage is null) { | 207 if (parent.sizeImage is null) { |
208 int itemHeight = parent.getItemHeight(); | 208 int itemHeight = parent.getItemHeight(); |
209 parent.sizeImage = new Image(null, itemHeight, itemHeight); | 209 parent.sizeImage = new Image(parent.getDisplay(), itemHeight, itemHeight); |
210 GC gc = new GC (parent.sizeImage); | 210 GC gc = new GC (parent.sizeImage); |
211 gc.setBackground(parent.getBackground()); | 211 gc.setBackground(parent.getBackground()); |
212 gc.fillRectangle(0, 0, itemHeight, itemHeight); | 212 gc.fillRectangle(0, 0, itemHeight, itemHeight); |
213 gc.dispose(); | 213 gc.dispose(); |
214 tableItem.setImage(0, parent.sizeImage); | 214 tableItem.setImage(0, parent.sizeImage); |