diff dwt/graphics/Device.d @ 28:10acbb123580

Widget and TypedListener
author Frank Benoit <benoit@tionex.de>
date Wed, 09 Jan 2008 02:59:32 +0100
parents fc2b263b8a3f
children 27324bbbac70
line wrap: on
line diff
--- a/dwt/graphics/Device.d	Wed Jan 09 01:08:22 2008 +0100
+++ b/dwt/graphics/Device.d	Wed Jan 09 02:59:32 2008 +0100
@@ -77,7 +77,7 @@
 	 * platforms and should never be accessed from application code.
 	 * </p>
 	 */
-	protected dwt.internal.gtk.c.cairotypes.Display* xDisplay;
+	protected void* xDisplay;
 	GtkWidget* shellHandle;
 
 	/* Debugging */
@@ -287,7 +287,7 @@
 	}
 }
 
-static synchronized Device findDevice (dwt.internal.gtk.c.cairotypes.Display* xDisplay) {
+static synchronized Device findDevice (void* xDisplay) {
 	for (int i=0; i<Devices.length; i++) {
 		Device device = Devices [i];
 		if (device !is null && device.xDisplay is xDisplay) {
@@ -847,7 +847,7 @@
 	}
 }
 
-private static extern(C) int /*long*/ XErrorProcFunc (dwt.internal.gtk.c.cairotypes.Display* xDisplay, dwt.internal.gtk.OS.XErrorEvent* xErrorEvent) {
+private static extern(C) int /*long*/ XErrorProcFunc (void* xDisplay, dwt.internal.gtk.OS.XErrorEvent* xErrorEvent) {
 	Device device = findDevice (xDisplay);
 	if (device != null) {
 		if (device.warningLevel == 0) {
@@ -867,7 +867,7 @@
 	return 0;
 }
 
-private static extern(C)  int /*long*/ XIOErrorProcFunc (dwt.internal.gtk.c.cairotypes.Display* xDisplay) {
+private static extern(C)  int /*long*/ XIOErrorProcFunc (void* xDisplay) {
 	Device device = findDevice (xDisplay);
 	if (device != null) {
 		if (DEBUG || device.debugging) {