Mercurial > projects > dwt-win
comparison dwt/accessibility/Accessible.d @ 312:ebe343095cf1
Fix tango.core.Array.remove use
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 19 Sep 2008 22:37:37 +0200 |
parents | fd9c62a2998e |
children | fcbee1f66cc3 |
comparison
equal
deleted
inserted
replaced
311:02332a154347 | 312:ebe343095cf1 |
---|---|
289 * @see #addAccessibleListener | 289 * @see #addAccessibleListener |
290 */ | 290 */ |
291 public void removeAccessibleListener(AccessibleListener listener) { | 291 public void removeAccessibleListener(AccessibleListener listener) { |
292 checkWidget(); | 292 checkWidget(); |
293 if (listener is null) DWT.error(__FILE__, __LINE__, DWT.ERROR_NULL_ARGUMENT); | 293 if (listener is null) DWT.error(__FILE__, __LINE__, DWT.ERROR_NULL_ARGUMENT); |
294 accessibleListeners.remove(listener); | 294 AccessibleListener.length = accessibleListeners.remove(listener); |
295 } | 295 } |
296 | 296 |
297 /** | 297 /** |
298 * Removes the listener from the collection of listeners who will | 298 * Removes the listener from the collection of listeners who will |
299 * be notified when an accessible client asks for custom control | 299 * be notified when an accessible client asks for custom control |
314 * @see #addAccessibleControlListener | 314 * @see #addAccessibleControlListener |
315 */ | 315 */ |
316 public void removeAccessibleControlListener(AccessibleControlListener listener) { | 316 public void removeAccessibleControlListener(AccessibleControlListener listener) { |
317 checkWidget(); | 317 checkWidget(); |
318 if (listener is null) DWT.error(__FILE__, __LINE__, DWT.ERROR_NULL_ARGUMENT); | 318 if (listener is null) DWT.error(__FILE__, __LINE__, DWT.ERROR_NULL_ARGUMENT); |
319 accessibleControlListeners.remove(listener); | 319 AccessibleControlListener.length = accessibleControlListeners.remove(listener); |
320 } | 320 } |
321 | 321 |
322 /** | 322 /** |
323 * Removes the listener from the collection of listeners who will | 323 * Removes the listener from the collection of listeners who will |
324 * be notified when an accessible client asks for custom text control | 324 * be notified when an accessible client asks for custom text control |
341 * @since 3.0 | 341 * @since 3.0 |
342 */ | 342 */ |
343 public void removeAccessibleTextListener (AccessibleTextListener listener) { | 343 public void removeAccessibleTextListener (AccessibleTextListener listener) { |
344 checkWidget (); | 344 checkWidget (); |
345 if (listener is null) DWT.error (DWT.ERROR_NULL_ARGUMENT); | 345 if (listener is null) DWT.error (DWT.ERROR_NULL_ARGUMENT); |
346 textListeners.remove (listener); | 346 textListeners.length = textListeners.remove (listener); |
347 } | 347 } |
348 | 348 |
349 /** | 349 /** |
350 * Sends a message to accessible clients that the child selection | 350 * Sends a message to accessible clients that the child selection |
351 * within a custom container control has changed. | 351 * within a custom container control has changed. |