Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Williams2019-01-30 13:04:34 -0500
committerEric Williams2019-01-30 13:18:08 -0500
commit22a865fbd64d9ae3cbc58183d76b5b6c6c5fb38e (patch)
tree57051e3555a8d21047d606d373d764a27fb8ee2b
parent08e68cc14fae46f4718351e8533ad14b6244dc8e (diff)
downloadeclipse.platform.swt-22a865fbd64d9ae3cbc58183d76b5b6c6c5fb38e.tar.gz
eclipse.platform.swt-22a865fbd64d9ae3cbc58183d76b5b6c6c5fb38e.tar.xz
eclipse.platform.swt-22a865fbd64d9ae3cbc58183d76b5b6c6c5fb38e.zip
Bug 543912: [GTK4] Adapt to GdkCursor API changes
Restore GTK3 GdkCursor API for cases where CSS named cursors aren't available (like GTK3.10). Change-Id: Ib26888543eeb7df7d51e9eac3d0a8bf023e6d9f3 Signed-off-by: Eric Williams <ericwill@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c12
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.h1
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c1
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h1
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GDK.java13
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Cursor.java82
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java8
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java26
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java6
10 files changed, 107 insertions, 47 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c
index 2567165ed9..948d0cfd74 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c
@@ -380,6 +380,18 @@ JNIEXPORT void JNICALL GDK_NATIVE(_1gdk_1cairo_1set_1source_1window)
}
#endif
+#ifndef NO__1gdk_1cursor_1new_1for_1display
+JNIEXPORT jintLong JNICALL GDK_NATIVE(_1gdk_1cursor_1new_1for_1display)
+ (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1)
+{
+ jintLong rc = 0;
+ GDK_NATIVE_ENTER(env, that, _1gdk_1cursor_1new_1for_1display_FUNC);
+ rc = (jintLong)gdk_cursor_new_for_display((GdkDisplay *)arg0, (GdkCursorType)arg1);
+ GDK_NATIVE_EXIT(env, that, _1gdk_1cursor_1new_1for_1display_FUNC);
+ return rc;
+}
+#endif
+
#if (!defined(NO__1gdk_1cursor_1new_1from_1name__I_3B) && !defined(JNI64)) || (!defined(NO__1gdk_1cursor_1new_1from_1name__J_3B) && defined(JNI64))
#ifndef JNI64
JNIEXPORT jintLong JNICALL GDK_NATIVE(_1gdk_1cursor_1new_1from_1name__I_3B)(JNIEnv *env, jclass that, jintLong arg0, jbyteArray arg1)
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.h b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.h
index 8174758979..6ddf4a2891 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.h
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.h
@@ -370,6 +370,7 @@
#define NO_GDK_1EVENT_1WINDOW
// GdkCursor removals
+#define NO__1gdk_1cursor_1new_1for_1display
#define NO__1gdk_1cursor_1new_1from_1pixbuf
#define NO__1gdk_1display_1supports_1cursor_1color
#define NO__1gdk_1cursor_1new_1from_1name__I_3B
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c
index 3be969bd6b..0b5b142757 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c
@@ -50,6 +50,7 @@ char * GDK_nativeFunctionNames[] = {
"_1gdk_1cairo_1set_1source_1pixbuf",
"_1gdk_1cairo_1set_1source_1rgba",
"_1gdk_1cairo_1set_1source_1window",
+ "_1gdk_1cursor_1new_1for_1display",
#ifndef JNI64
"_1gdk_1cursor_1new_1from_1name__I_3B",
#else
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h
index c66c7e4fdd..8b73563106 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h
@@ -60,6 +60,7 @@ typedef enum {
_1gdk_1cairo_1set_1source_1pixbuf_FUNC,
_1gdk_1cairo_1set_1source_1rgba_FUNC,
_1gdk_1cairo_1set_1source_1window_FUNC,
+ _1gdk_1cursor_1new_1for_1display_FUNC,
#ifndef JNI64
_1gdk_1cursor_1new_1from_1name__I_3B_FUNC,
#else
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GDK.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GDK.java
index 5a235524cb..c056bc2f49 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GDK.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GDK.java
@@ -647,6 +647,19 @@ public class GDK extends OS {
lock.unlock();
}
}
+ /** @param display cast=(GdkDisplay *)
+ * @param cursor_type cast=(GdkCursorType)
+ */
+ public static final native long /*int*/ _gdk_cursor_new_for_display(long /*int*/ display, long /*int*/ cursor_type);
+ /** [GTK3 only, if-def'd in os.h] */
+ public static final long /*int*/ gdk_cursor_new_for_display(long /*int*/ display, long /*int*/ cursor_type) {
+ lock.lock();
+ try {
+ return _gdk_cursor_new_for_display(display, cursor_type);
+ } finally {
+ lock.unlock();
+ }
+ }
/**
* @param display cast=(GdkDisplay *)
* @param cursor_name cast=(const gchar *)
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Cursor.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Cursor.java
index f20bd7207c..5c20e7d7e1 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Cursor.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Cursor.java
@@ -140,31 +140,60 @@ public Cursor(Device device, int style) {
super(device);
int shape = 0;
byte[] name = null;
- switch (style) {
- case SWT.CURSOR_APPSTARTING: name = Converter.wcsToMbcs("progress", true) ; break;
- case SWT.CURSOR_ARROW: name = Converter.wcsToMbcs("default", true) ; break;
- case SWT.CURSOR_WAIT: name = Converter.wcsToMbcs("wait", true) ; break;
- case SWT.CURSOR_CROSS: name = Converter.wcsToMbcs("cell", true) ; break;
- case SWT.CURSOR_HAND: name = Converter.wcsToMbcs("pointer", true) ; break;
- case SWT.CURSOR_HELP: name = Converter.wcsToMbcs("help", true) ; break;
- case SWT.CURSOR_SIZEALL: name = Converter.wcsToMbcs("all-scroll", true) ; break;
- case SWT.CURSOR_SIZENESW: name = Converter.wcsToMbcs("nesw-resize", true); break;
- case SWT.CURSOR_SIZENS: name = Converter.wcsToMbcs("row-resize", true) ; break;
- case SWT.CURSOR_SIZENWSE: name = Converter.wcsToMbcs("nwse-resize", true); break;
- case SWT.CURSOR_SIZEWE: name = Converter.wcsToMbcs("col-resize", true); break;
- case SWT.CURSOR_SIZEN: name = Converter.wcsToMbcs("n-resize", true); break;
- case SWT.CURSOR_SIZES: name = Converter.wcsToMbcs("s-resize", true); break;
- case SWT.CURSOR_SIZEE: name = Converter.wcsToMbcs("e-resize", true); break;
- case SWT.CURSOR_SIZEW: name = Converter.wcsToMbcs("w-resize", true); break;
- case SWT.CURSOR_SIZENE: name = Converter.wcsToMbcs("ne-resize", true); break;
- case SWT.CURSOR_SIZESE: name = Converter.wcsToMbcs("se-resize", true); break;
- case SWT.CURSOR_SIZESW: name = Converter.wcsToMbcs("sw-resize", true); break;
- case SWT.CURSOR_SIZENW: name = Converter.wcsToMbcs("nw-resize", true); break;
- case SWT.CURSOR_UPARROW: name = Converter.wcsToMbcs("ns-resize", true); break;
- case SWT.CURSOR_IBEAM: name = Converter.wcsToMbcs("text", true); break;
- case SWT.CURSOR_NO: name = Converter.wcsToMbcs("not-allowed", true) ; break;
- default:
- SWT.error(SWT.ERROR_INVALID_ARGUMENT);
+ if (GTK.GTK4) {
+ switch (style) {
+ case SWT.CURSOR_APPSTARTING: name = Converter.wcsToMbcs("progress", true) ; break;
+ case SWT.CURSOR_ARROW: name = Converter.wcsToMbcs("default", true) ; break;
+ case SWT.CURSOR_WAIT: name = Converter.wcsToMbcs("wait", true) ; break;
+ case SWT.CURSOR_CROSS: name = Converter.wcsToMbcs("cell", true) ; break;
+ case SWT.CURSOR_HAND: name = Converter.wcsToMbcs("pointer", true) ; break;
+ case SWT.CURSOR_HELP: name = Converter.wcsToMbcs("help", true) ; break;
+ case SWT.CURSOR_SIZEALL: name = Converter.wcsToMbcs("all-scroll", true) ; break;
+ case SWT.CURSOR_SIZENESW: name = Converter.wcsToMbcs("nesw-resize", true); break;
+ case SWT.CURSOR_SIZENS: name = Converter.wcsToMbcs("row-resize", true) ; break;
+ case SWT.CURSOR_SIZENWSE: name = Converter.wcsToMbcs("nwse-resize", true); break;
+ case SWT.CURSOR_SIZEWE: name = Converter.wcsToMbcs("col-resize", true); break;
+ case SWT.CURSOR_SIZEN: name = Converter.wcsToMbcs("n-resize", true); break;
+ case SWT.CURSOR_SIZES: name = Converter.wcsToMbcs("s-resize", true); break;
+ case SWT.CURSOR_SIZEE: name = Converter.wcsToMbcs("e-resize", true); break;
+ case SWT.CURSOR_SIZEW: name = Converter.wcsToMbcs("w-resize", true); break;
+ case SWT.CURSOR_SIZENE: name = Converter.wcsToMbcs("ne-resize", true); break;
+ case SWT.CURSOR_SIZESE: name = Converter.wcsToMbcs("se-resize", true); break;
+ case SWT.CURSOR_SIZESW: name = Converter.wcsToMbcs("sw-resize", true); break;
+ case SWT.CURSOR_SIZENW: name = Converter.wcsToMbcs("nw-resize", true); break;
+ case SWT.CURSOR_UPARROW: name = Converter.wcsToMbcs("ns-resize", true); break;
+ case SWT.CURSOR_IBEAM: name = Converter.wcsToMbcs("text", true); break;
+ case SWT.CURSOR_NO: name = Converter.wcsToMbcs("not-allowed", true) ; break;
+ default:
+ SWT.error(SWT.ERROR_INVALID_ARGUMENT);
+ }
+ } else {
+ switch (style) {
+ case SWT.CURSOR_APPSTARTING: name = Converter.wcsToMbcs("progress", true) ; break;
+ case SWT.CURSOR_ARROW: shape = GDK.GDK_LEFT_PTR; break;
+ case SWT.CURSOR_WAIT: shape = GDK.GDK_WATCH; break;
+ case SWT.CURSOR_CROSS: shape = GDK.GDK_CROSS; break;
+ case SWT.CURSOR_HAND: shape = GDK.GDK_HAND2; break;
+ case SWT.CURSOR_HELP: shape = GDK.GDK_QUESTION_ARROW; break;
+ case SWT.CURSOR_SIZEALL: shape = GDK.GDK_FLEUR; break;
+ case SWT.CURSOR_SIZENESW: shape = GDK.GDK_SIZING; name=Converter.wcsToMbcs("nesw-resize", true); break;
+ case SWT.CURSOR_SIZENS: shape = GDK.GDK_DOUBLE_ARROW; break;
+ case SWT.CURSOR_SIZENWSE: shape = GDK.GDK_SIZING; name=Converter.wcsToMbcs("nwse-resize", true); break;
+ case SWT.CURSOR_SIZEWE: shape = GDK.GDK_SB_H_DOUBLE_ARROW; break;
+ case SWT.CURSOR_SIZEN: shape = GDK.GDK_TOP_SIDE; break;
+ case SWT.CURSOR_SIZES: shape = GDK.GDK_BOTTOM_SIDE; break;
+ case SWT.CURSOR_SIZEE: shape = GDK.GDK_RIGHT_SIDE; break;
+ case SWT.CURSOR_SIZEW: shape = GDK.GDK_LEFT_SIDE; break;
+ case SWT.CURSOR_SIZENE: shape = GDK.GDK_TOP_RIGHT_CORNER; break;
+ case SWT.CURSOR_SIZESE: shape = GDK.GDK_BOTTOM_RIGHT_CORNER; break;
+ case SWT.CURSOR_SIZESW: shape = GDK.GDK_BOTTOM_LEFT_CORNER; break;
+ case SWT.CURSOR_SIZENW: shape = GDK.GDK_TOP_LEFT_CORNER; break;
+ case SWT.CURSOR_UPARROW: shape = GDK.GDK_SB_UP_ARROW; break;
+ case SWT.CURSOR_IBEAM: shape = GDK.GDK_XTERM; break;
+ case SWT.CURSOR_NO: shape = GDK.GDK_X_CURSOR; name=Converter.wcsToMbcs("not-allowed", true) ; break;
+ default:
+ SWT.error(SWT.ERROR_INVALID_ARGUMENT);
+ }
}
if (name != null) {
if (GTK.GTK4) {
@@ -180,7 +209,10 @@ public Cursor(Device device, int style) {
byte[] mask = new byte[APPSTARTING_MASK.length];
System.arraycopy(APPSTARTING_MASK, 0, mask, 0, mask.length);
handle = createCursor(src, mask, 32, 32, 2, 2, true);
+ } else {
+ if (!GTK.GTK4) handle = GDK.gdk_cursor_new_for_display(GDK.gdk_display_get_default(), shape);
}
+
}
if (handle == 0) SWT.error(SWT.ERROR_NO_HANDLES);
init();
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java
index d1d27b351b..e41ae46acf 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java
@@ -146,18 +146,18 @@ void createHandle (int index) {
gtk_widget_set_has_surface_or_window (handle, true);
GTK.gtk_widget_set_can_focus (handle, true);
if ((style & SWT.VERTICAL) != 0) {
- byte [] name = Converter.wcsToMbcs("w-resize", true);
if (GTK.GTK4) {
+ byte [] name = Converter.wcsToMbcs("w-resize", true);
defaultCursor = GDK.gdk_cursor_new_from_name(name, 0);
} else {
- defaultCursor = GDK.gdk_cursor_new_from_name(GDK.gdk_display_get_default(), name);
+ defaultCursor = GDK.gdk_cursor_new_for_display (GDK.gdk_display_get_default(), GDK.GDK_SB_H_DOUBLE_ARROW);
}
} else {
- byte [] name = Converter.wcsToMbcs("ns-resize", true);
if (GTK.GTK4) {
+ byte [] name = Converter.wcsToMbcs("ns-resize", true);
defaultCursor = GDK.gdk_cursor_new_from_name(name, 0);
} else {
- defaultCursor = GDK.gdk_cursor_new_from_name(GDK.gdk_display_get_default(), name);
+ defaultCursor = GDK.gdk_cursor_new_for_display (GDK.gdk_display_get_default(), GDK.GDK_SB_V_DOUBLE_ARROW);
}
}
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
index 554709ecaf..7ebfeeccae 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
@@ -1653,25 +1653,25 @@ long /*int*/ gtk_motion_notify_event (long /*int*/ widget, long /*int*/ event) {
int mode = getResizeMode (eventX[0], eventY[0]);
if (mode != display.resizeMode) {
long /*int*/ cursor;
- byte [] name;
- switch (mode) {
- case GDK.GDK_BOTTOM_RIGHT_CORNER: name = Converter.wcsToMbcs("se-resize", true); break;
- case GDK.GDK_BOTTOM_LEFT_CORNER: name = Converter.wcsToMbcs("sw-resize", true); break;
- case GDK.GDK_TOP_LEFT_CORNER: name = Converter.wcsToMbcs("nw-resize", true); break;
- case GDK.GDK_TOP_RIGHT_CORNER: name = Converter.wcsToMbcs("ne-resize", true); break;
- case GDK.GDK_BOTTOM_SIDE: name = Converter.wcsToMbcs("s-resize", true); break;
- case GDK.GDK_TOP_SIDE: name = Converter.wcsToMbcs("n-resize", true); break;
- case GDK.GDK_LEFT_SIDE: name = Converter.wcsToMbcs("w-resize", true); break;
- case GDK.GDK_RIGHT_SIDE: name = Converter.wcsToMbcs("e-resize", true); break;
- default: name = Converter.wcsToMbcs("none", true); break;
- }
if (GTK.GTK4) {
+ byte [] name;
+ switch (mode) {
+ case GDK.GDK_BOTTOM_RIGHT_CORNER: name = Converter.wcsToMbcs("se-resize", true); break;
+ case GDK.GDK_BOTTOM_LEFT_CORNER: name = Converter.wcsToMbcs("sw-resize", true); break;
+ case GDK.GDK_TOP_LEFT_CORNER: name = Converter.wcsToMbcs("nw-resize", true); break;
+ case GDK.GDK_TOP_RIGHT_CORNER: name = Converter.wcsToMbcs("ne-resize", true); break;
+ case GDK.GDK_BOTTOM_SIDE: name = Converter.wcsToMbcs("s-resize", true); break;
+ case GDK.GDK_TOP_SIDE: name = Converter.wcsToMbcs("n-resize", true); break;
+ case GDK.GDK_LEFT_SIDE: name = Converter.wcsToMbcs("w-resize", true); break;
+ case GDK.GDK_RIGHT_SIDE: name = Converter.wcsToMbcs("e-resize", true); break;
+ default: name = Converter.wcsToMbcs("none", true); break;
+ }
long /*int*/ surface = gtk_widget_get_surface(shellHandle);
cursor = GDK.gdk_cursor_new_from_name(name, 0);
GDK.gdk_surface_set_cursor(surface, cursor);
} else {
long /*int*/ window = gtk_widget_get_window (shellHandle);
- cursor = GDK.gdk_cursor_new_from_name (GDK.gdk_display_get_default(), name);
+ cursor = GDK.gdk_cursor_new_for_display (GDK.gdk_display_get_default(), mode);
GDK.gdk_window_set_cursor (window, cursor);
}
OS.g_object_unref (cursor);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java
index 79ee9f54e2..d2273fe6b4 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java
@@ -924,11 +924,11 @@ void setBackgroundGdkRGBA (long /*int*/ context, long /*int*/ handle, GdkRGBA rg
void setCursor (long /*int*/ cursor) {
long /*int*/ defaultCursor = 0;
if (cursor == 0) {
- byte [] name = Converter.wcsToMbcs("text", true);
if (GTK.GTK4) {
+ byte [] name = Converter.wcsToMbcs("text", true);
defaultCursor = GDK.gdk_cursor_new_from_name(name, 0);
} else {
- defaultCursor = GDK.gdk_cursor_new_from_name(GDK.gdk_display_get_default(), name);
+ defaultCursor = GDK.gdk_cursor_new_for_display (GDK.gdk_display_get_default(), GDK.GDK_XTERM);
}
}
super.setCursor (cursor != 0 ? cursor : defaultCursor);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java
index 95314f9738..e293809a99 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java
@@ -2282,11 +2282,11 @@ void setBackgroundGdkRGBA (long /*int*/ context, long /*int*/ handle, GdkRGBA rg
void setCursor (long /*int*/ cursor) {
long /*int*/ defaultCursor = 0;
if (cursor == 0) {
- byte [] name = Converter.wcsToMbcs("text", true);
if (GTK.GTK4) {
- GDK.gdk_cursor_new_from_name(name, 0);
+ byte [] name = Converter.wcsToMbcs("text", true);
+ defaultCursor = GDK.gdk_cursor_new_from_name(name, 0);
} else {
- GDK.gdk_cursor_new_from_name(GDK.gdk_display_get_default(), name);
+ defaultCursor = GDK.gdk_cursor_new_for_display (GDK.gdk_display_get_default(), GDK.GDK_XTERM);
}
}
super.setCursor (cursor != 0 ? cursor : defaultCursor);

Back to the top