Mercurial > projects > dwt-linux
diff dwt/widgets/Display.d @ 152:17f8449522fd
overloads second walkthrough
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 31 Jan 2008 23:19:20 +0100 |
parents | f2e04420fd6c |
children | 3948d75b8370 |
line wrap: on
line diff
--- a/dwt/widgets/Display.d Thu Jan 31 20:26:30 2008 +0100 +++ b/dwt/widgets/Display.d Thu Jan 31 23:19:20 2008 +0100 @@ -753,7 +753,7 @@ widget.cellDataProc (tree_column, cell, tree_model, iter, data); } -protected void checkDevice () { +protected override void checkDevice () { if (thread is null) error (DWT.ERROR_WIDGET_DISPOSED); if (thread !is Thread.getThis ()) error (DWT.ERROR_THREAD_INVALID_ACCESS); if (isDisposed ()) error (DWT.ERROR_DEVICE_DISPOSED); @@ -879,7 +879,7 @@ * * @see #init */ -protected void create (DeviceData data) { +protected override void create (DeviceData data) { checkSubclass (); checkDisplay(thread = Thread.getThis (), false); createDisplay (data); @@ -1080,7 +1080,7 @@ * @see Device#dispose * @see #release */ -protected void destroy () { +protected override void destroy () { if (this is Default) Default = null; deregister (); destroyDisplay (); @@ -2306,7 +2306,7 @@ * * @see #create */ -protected void init () { +protected override void init () { super.init (); initializeCallbacks (); initializeSystemColors (); @@ -3032,7 +3032,7 @@ * @see Device#dispose * @see #destroy */ -protected void release () { +protected override void release () { sendEvent (DWT.Dispose, new Event ()); Shell [] shells = getShells (); for (int i=0; i<shells.length; i++) {