Mercurial > projects > dwt-linux
diff dwt/widgets/Control.d @ 238:380bad9f6852
reverted char[] to String
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:42:55 +0200 |
parents | de2578a843a7 |
children | ce446666f5a2 |
line wrap: on
line diff
--- a/dwt/widgets/Control.d Sat Apr 26 10:01:30 2008 +0200 +++ b/dwt/widgets/Control.d Mon May 05 00:42:55 2008 +0200 @@ -12,6 +12,8 @@ *******************************************************************************/ module dwt.widgets.Control; +import dwt.dwthelper.utils; + import dwt.DWT; //import dwt.accessibility.Accessible; @@ -94,7 +96,7 @@ Menu menu; Image backgroundImage; Font font; - char[] toolTipText; + String toolTipText; Object layoutData; Accessible accessible; @@ -2311,7 +2313,7 @@ * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */ -public char[] getToolTipText () { +public String getToolTipText () { checkWidget(); return toolTipText; } @@ -3196,7 +3198,7 @@ auto style = OS.gtk_widget_get_modifier_style (handle); auto ptr = OS.gtk_rc_style_get_bg_pixmap_name (style, index); if (ptr !is null) OS.g_free (ptr); - char[] name = color is null ? "<parent>" : "<none>" ; + String name = color is null ? "<parent>" : "<none>" ; ptr = cast(char*)OS.g_malloc (name.length+1); ptr[ 0 .. name.length ] = name; ptr[ name.length ] = '\0'; @@ -3714,13 +3716,13 @@ * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */ -public void setToolTipText (char[] str) { +public void setToolTipText (String str) { checkWidget(); setToolTipText (_getShell (), str); toolTipText = str; } -void setToolTipText (Shell shell, char[] newString) { +void setToolTipText (Shell shell, String newString) { shell.setToolTipText (eventHandle (), newString); }