Mercurial > projects > dwt-linux
diff dwt/dnd/DropTarget.d @ 238:380bad9f6852
reverted char[] to String
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:42:55 +0200 |
parents | 08789b28bdf3 |
children | ce446666f5a2 |
line wrap: on
line diff
--- a/dwt/dnd/DropTarget.d Sat Apr 26 10:01:30 2008 +0200 +++ b/dwt/dnd/DropTarget.d Mon May 05 00:42:55 2008 +0200 @@ -116,8 +116,8 @@ int drag_data_received_handler; int drag_drop_handler; - static const char[] DEFAULT_DROP_TARGET_EFFECT = "DEFAULT_DROP_TARGET_EFFECT"; //$NON-NLS-1$ - static const char[] DROPTARGETID = "DropTarget"; //$NON-NLS-1$ + static const String DEFAULT_DROP_TARGET_EFFECT = "DEFAULT_DROP_TARGET_EFFECT"; //$NON-NLS-1$ + static const String DROPTARGETID = "DropTarget"; //$NON-NLS-1$ static const int DRAGOVER_HYSTERESIS = 50; // static Callback Drag_Motion; @@ -369,8 +369,8 @@ } protected override void checkSubclass () { - char[] name = this.classinfo.name; - char[] validName = DropTarget.classinfo.name; + String name = this.classinfo.name; + String validName = DropTarget.classinfo.name; if ( validName !=/*eq*/ name ) { DND.error (DWT.ERROR_INVALID_SUBCLASS); } @@ -702,7 +702,7 @@ Transfer transfer = transferAgents[i]; if (transfer !is null) { int[] typeIds = transfer.getTypeIds(); - char[][] typeNames = transfer.getTypeNames(); + String[] typeNames = transfer.getTypeNames(); for (int j = 0; j < typeIds.length; j++) { GtkTargetEntry* entry = new GtkTargetEntry(); entry.target = cast(char*)OS.g_malloc(typeNames[j].length +1);