Mercurial > projects > dwt2
comparison org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/dnd/DragSource.d @ 47:65761bc28ab2
swt linux again compilable for d1.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 27 Mar 2009 11:43:53 +0100 |
parents | f713da8bc051 |
children | 7e78af7adab5 |
comparison
equal
deleted
inserted
replaced
46:17310ba3c1bc | 47:65761bc28ab2 |
---|---|
36 import org.eclipse.swt.dnd.DNDListener; | 36 import org.eclipse.swt.dnd.DNDListener; |
37 import org.eclipse.swt.dnd.DNDEvent; | 37 import org.eclipse.swt.dnd.DNDEvent; |
38 import org.eclipse.swt.dnd.TransferData; | 38 import org.eclipse.swt.dnd.TransferData; |
39 import java.lang.all; | 39 import java.lang.all; |
40 | 40 |
41 import tango.core.Thread; | 41 import java.lang.Thread; |
42 | 42 |
43 /** | 43 /** |
44 * | 44 * |
45 * <code>DragSource</code> defines the source object for a drag and drop transfer. | 45 * <code>DragSource</code> defines the source object for a drag and drop transfer. |
46 * | 46 * |
264 source.dragGetData(widget, context, selection_data, cast(int)/*64*/info, cast(int)/*64*/time); | 264 source.dragGetData(widget, context, selection_data, cast(int)/*64*/info, cast(int)/*64*/time); |
265 return; | 265 return; |
266 } | 266 } |
267 | 267 |
268 static DragSource FindDragSource(GtkWidget* handle) { | 268 static DragSource FindDragSource(GtkWidget* handle) { |
269 Display display = Display.findDisplay(Thread.getThis()); | 269 Display display = Display.findDisplay(Thread.currentThread()); |
270 if (display is null || display.isDisposed()) return null; | 270 if (display is null || display.isDisposed()) return null; |
271 Widget widget = display.findWidget(handle); | 271 Widget widget = display.findWidget(handle); |
272 if (widget is null) return null; | 272 if (widget is null) return null; |
273 return cast(DragSource)widget.getData(DND.DRAG_SOURCE_KEY); | 273 return cast(DragSource)widget.getData(DND.DRAG_SOURCE_KEY); |
274 } | 274 } |