Changeset 238:380bad9f6852 for dwt/dnd/Clipboard.d
- Timestamp:
- 05/04/08 18:42:55 (4 years ago)
- Files:
-
- dwt/dnd/Clipboard.d (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dwt/dnd/Clipboard.d
r158 r238 114 114 */ 115 115 protected void checkSubclass () { 116 char[]name = this.classinfo.name;117 char[]validName = Clipboard.classinfo.name;116 String name = this.classinfo.name; 117 String validName = Clipboard.classinfo.name; 118 118 if ( validName !=/*eq*/ name ) { 119 119 DND.error (DWT.ERROR_INVALID_SUBCLASS); … … 553 553 * </ul> 554 554 */ 555 public char[][] getAvailableTypeNames() {555 public String[] getAvailableTypeNames() { 556 556 checkWidget(); 557 557 auto types1 = getAvailableClipboardTypes(); 558 558 auto types2 = getAvailablePrimaryTypes(); 559 char[][] result = new char[][types1.length + types2.length];559 String[] result = new String[types1.length + types2.length]; 560 560 int count = 0; 561 561 for (int i = 0; i < types1.length; i++) { … … 564 564 continue; 565 565 } 566 char[]buffer = tango.stdc.stringz.fromStringz( pName ).dup;566 String buffer = tango.stdc.stringz.fromStringz( pName ).dup; 567 567 OS.g_free (pName); 568 568 result[count++] = "GTKCLIPBOARD "~buffer; … … 573 573 continue; 574 574 } 575 char[]buffer = tango.stdc.stringz.fromStringz( pName ).dup;575 String buffer = tango.stdc.stringz.fromStringz( pName ).dup; 576 576 OS.g_free (pName); 577 577 result[count++] = "GTKPRIMARYCLIPBOARD "~buffer; 578 578 } 579 579 if (count < result.length){ 580 char[][] temp = new char[][count];580 String[] temp = new String[count]; 581 581 System.arraycopy(result, 0, temp, 0, count); 582 582 result = temp; … … 619 619 620 620 GtkSelectionData* gtk_clipboard_wait_for_contents(void* clipboard, void* target) { 621 char[]key = "org.eclipse.swt.internal.gtk.dispatchEvent";621 String key = "org.eclipse.swt.internal.gtk.dispatchEvent"; 622 622 Display display = this.display; 623 623 ArrayWrapperInt arr = new ArrayWrapperInt( [ OS.GDK_PROPERTY_NOTIFY, OS.GDK_SELECTION_CLEAR, OS.GDK_SELECTION_REQUEST, OS.GDK_SELECTION_NOTIFY ] );
