Mercurial > projects > dwt-win
diff dwt/widgets/ProgressBar.d @ 214:a8fed3e56433
Fix link error and added missing switch defaults
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 17 May 2008 19:23:59 +0200 |
parents | 36f5cb12e1a2 |
children | fd9c62a2998e |
line wrap: on
line diff
--- a/dwt/widgets/ProgressBar.d Sat May 17 17:34:28 2008 +0200 +++ b/dwt/widgets/ProgressBar.d Sat May 17 19:23:59 2008 +0200 @@ -214,13 +214,13 @@ * Returns the state of the receiver. The value will be one of * <code>NORMAL</code>, <code>ERROR</code> or <code>PAUSED</code>. * - * @return the state + * @return the state * * @exception DWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> - * + * * @since 3.4 */ public int getState () { @@ -231,6 +231,7 @@ case OS.PBST_NORMAL: return DWT.NORMAL; case OS.PBST_ERROR: return DWT.ERROR; case OS.PBST_PAUSED: return DWT.PAUSED; + default: } } return DWT.NORMAL; @@ -357,7 +358,7 @@ * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> - * + * * @since 3.4 */ public void setState (int state) { @@ -373,6 +374,7 @@ case DWT.PAUSED: OS.SendMessage (handle, OS.PBM_SETSTATE, OS.PBST_PAUSED, 0); break; + default: } } }