Mercurial > projects > dwt-mac
comparison dwt/widgets/Display.d @ 129:ad4e1fe71a5a
Fixed runtime errors
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sun, 18 Jan 2009 18:39:46 +0100 |
parents | 07399639c0c8 |
children | a45406361e44 |
comparison
equal
deleted
inserted
replaced
128:07399639c0c8 | 129:ad4e1fe71a5a |
---|---|
92 import dwt.widgets.Monitor; | 92 import dwt.widgets.Monitor; |
93 import dwt.widgets.Shell; | 93 import dwt.widgets.Shell; |
94 import dwt.widgets.Synchronizer; | 94 import dwt.widgets.Synchronizer; |
95 import dwt.widgets.Tray; | 95 import dwt.widgets.Tray; |
96 import dwt.widgets.Widget; | 96 import dwt.widgets.Widget; |
97 | |
98 import tango.io.Stdout; | |
97 | 99 |
98 /** | 100 /** |
99 * Instances of this class are responsible for managing the | 101 * Instances of this class are responsible for managing the |
100 * connection between DWT and the underlying operating | 102 * connection between DWT and the underlying operating |
101 * system. Their most important function is to implement | 103 * system. Their most important function is to implement |
3567 if (contentView !is null) view = contentView.hitTest (window.convertScreenToBase(point)); | 3569 if (contentView !is null) view = contentView.hitTest (window.convertScreenToBase(point)); |
3568 } | 3570 } |
3569 } | 3571 } |
3570 Control control = null; | 3572 Control control = null; |
3571 if (view !is null) { | 3573 if (view !is null) { |
3572 do { | 3574 do {auto vi = view.id; |
3573 Widget widget = getWidget (view); | 3575 Widget widget = getWidget (view); |
3574 if (cast(Control) widget) { | 3576 if (cast(Control) widget) { |
3575 control = cast(Control)widget; | 3577 control = cast(Control)widget; |
3576 break; | 3578 break; |
3577 } | 3579 } |