diff dwt/internal/accessibility/gtk/ATK.d @ 238:380bad9f6852

reverted char[] to String
author Frank Benoit <benoit@tionex.de>
date Mon, 05 May 2008 00:42:55 +0200
parents 0f12f6bb9739
children ffb904674b52
line wrap: on
line diff
--- a/dwt/internal/accessibility/gtk/ATK.d	Sat Apr 26 10:01:30 2008 +0200
+++ b/dwt/internal/accessibility/gtk/ATK.d	Mon May 05 00:42:55 2008 +0200
@@ -16,6 +16,8 @@
  *******************************************************************************/
 module dwt.internal.accessibility.gtk.ATK;
 
+import dwt.dwthelper.utils;
+
 
 import dwt.internal.Library;
 import dwt.internal.gtk.OS;
@@ -63,7 +65,7 @@
 template NameOfFunc(alias f) {
     // Note: highly dependent on the .stringof formatting
     // the value begins with "& " which is why the first two chars are cut off
-    const char[] NameOfFunc = (&f).stringof[2 .. $];
+    const String NameOfFunc = (&f).stringof[2 .. $];
 }
 
 template ForwardGtkAtkCFunc( alias cFunc ) {
@@ -77,7 +79,7 @@
 }
 /+
 // alternative template implementation, might be more stable
-template ForwardGtkOsCFunc(char[] name) {
+template ForwardGtkOsCFunc(String name) {
   alias typeof(mixin(name)) func;
   alias ParameterTupleOf!(func) Params;
   alias ReturnTypeOf!(func) Ret;
@@ -145,11 +147,11 @@
     public static const int ATK_XY_WINDOW = 1;
 
     /** Signals */
-    public static const char[] selection_changed = "selection_changed";
-    public static const char[] text_changed_insert = "text_changed::insert";
-    public static const char[] text_changed_delete = "text_changed::delete";
-    public static const char[] text_caret_moved = "text_caret_moved";
-    public static const char[] text_selection_changed = "text_selection_changed";
+    public static const String selection_changed = "selection_changed";
+    public static const String text_changed_insert = "text_changed::insert";
+    public static const String text_changed_delete = "text_changed::delete";
+    public static const String text_caret_moved = "text_caret_moved";
+    public static const String text_selection_changed = "text_selection_changed";
 
     mixin ForwardGtkAtkCFunc!(.ATK_ACTION_GET_IFACE );
     mixin ForwardGtkAtkCFunc!(.ATK_COMPONENT_GET_IFACE);