diff dwt/widgets/TrayItem.d @ 238:380bad9f6852

reverted char[] to String
author Frank Benoit <benoit@tionex.de>
date Mon, 05 May 2008 00:42:55 +0200
parents 17f8449522fd
children 5a30aa9820f3
line wrap: on
line diff
--- a/dwt/widgets/TrayItem.d	Sat Apr 26 10:01:30 2008 +0200
+++ b/dwt/widgets/TrayItem.d	Mon May 05 00:42:55 2008 +0200
@@ -12,6 +12,8 @@
  *******************************************************************************/
 module dwt.widgets.TrayItem;
 
+import dwt.dwthelper.utils;
+
 import dwt.DWT;
 import dwt.widgets.Tray;
 import dwt.widgets.ToolTip;
@@ -49,7 +51,7 @@
 public class TrayItem : Item {
     Tray parent;
     ToolTip toolTip;
-    char[] toolTipText;
+    String toolTipText;
     GtkWidget* imageHandle;
     GtkWidget* tooltipsHandle;
     ImageList imageList;
@@ -174,7 +176,7 @@
     if (screen !is null) {
         monitor = OS.gdk_screen_get_number (screen);
     }
-    auto trayAtom = OS.gdk_atom_intern (toStringz("_NET_SYSTEM_TRAY_S" ~ to!(char[])(monitor)), true);
+    auto trayAtom = OS.gdk_atom_intern (toStringz("_NET_SYSTEM_TRAY_S" ~ to!(String)(monitor)), true);
     auto xTrayAtom = OS.gdk_x11_atom_to_xatom (trayAtom);
     auto xDisplay = OS.GDK_DISPLAY ();
     auto trayWindow = OS.XGetSelectionOwner (xDisplay, xTrayAtom);
@@ -248,7 +250,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;
 }
@@ -462,7 +464,7 @@
  *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  * </ul>
  */
-public void setToolTipText (char[] string) {
+public void setToolTipText (String string) {
     checkWidget ();
     toolTipText = string;
     char* buffer = null;