diff dwt/custom/CTabItem.d @ 315:349b8c12e243

Sync dwt/custom with dwt-linux
author Frank Benoit <benoit@tionex.de>
date Tue, 07 Oct 2008 16:18:26 +0200
parents fd9c62a2998e
children
line wrap: on
line diff
--- a/dwt/custom/CTabItem.d	Tue Oct 07 14:44:44 2008 +0200
+++ b/dwt/custom/CTabItem.d	Tue Oct 07 16:18:26 2008 +0200
@@ -12,6 +12,8 @@
  *******************************************************************************/
 module dwt.custom.CTabItem;
 
+import dwt.dwthelper.utils;
+
 
 
 import dwt.DWT;
@@ -29,7 +31,6 @@
 import dwt.widgets.Item;
 import dwt.widgets.Widget;
 import dwt.custom.CTabFolder;
-import dwt.dwthelper.utils;
 
 /**
  * Instances of this class represent a selectable user interface object
@@ -774,14 +775,14 @@
  * Returns <code>true</code> to indicate that the receiver's close button should be shown.
  * Otherwise return <code>false</code>. The initial value is defined by the style (DWT.CLOSE)
  * that was used to create the receiver.
- * 
+ *
  * @return <code>true</code> if the close button should be shown
  *
  * @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 bool getShowClose() {
@@ -1023,14 +1024,14 @@
  * Sets to <code>true</code> to indicate that the receiver's close button should be shown.
  * If the parent (CTabFolder) was created with DWT.CLOSE style, changing this value has
  * no effect.
- * 
+ *
  * @param close the new state of the close button
  *
  * @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 void setShowClose(bool close) {
@@ -1042,9 +1043,9 @@
 }
 public override void setText (String string) {
     checkWidget();
-    // DWT extension: allow null string
+    // DWT extension: allow null for zero length string
     //if (string is null) DWT.error (DWT.ERROR_NULL_ARGUMENT);
-    if (string==getText()) return;
+    if (string.equals (getText())) return;
     super.setText(string);
     shortenedText = null;
     shortenedTextWidth = 0;