Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2018-01-04 20:41:29 +0000
committerAlexander Kurtakov2018-01-04 20:43:33 +0000
commit3fc9146dd220a4f122ce02b39ac3afd561b839d3 (patch)
tree9beeff79c831c4c913fcc9ac68cff86cb980154a
parentca42124d01c6987adde92880f9ba6d7d97f9f982 (diff)
downloadeclipse.platform.swt-3fc9146dd220a4f122ce02b39ac3afd561b839d3.tar.gz
eclipse.platform.swt-3fc9146dd220a4f122ce02b39ac3afd561b839d3.tar.xz
eclipse.platform.swt-3fc9146dd220a4f122ce02b39ac3afd561b839d3.zip
Bug 529021 - [Wayland] test_ConstructorLorg_eclipse_swt_graphics_DeviceI
throws SWTError Use the named cursors to prevent the issue. Bonus point for these being actual resize cursors and being better looking even. Change-Id: I9dbe3156e251c58096ac3e1e22bb0a6f3e727e34 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Cursor.java6
1 files changed, 3 insertions, 3 deletions
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 c0ec9d94bc..65df4cbfe5 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
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2017 IBM Corporation and others.
+ * Copyright (c) 2000, 2018 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -145,9 +145,9 @@ public Cursor(Device device, int style) {
case SWT.CURSOR_HAND: shape = OS.GDK_HAND2; break;
case SWT.CURSOR_HELP: shape = OS.GDK_QUESTION_ARROW; break;
case SWT.CURSOR_SIZEALL: shape = OS.GDK_FLEUR; break;
- case SWT.CURSOR_SIZENESW: shape = OS.GDK_SIZING; break;
+ case SWT.CURSOR_SIZENESW: shape = OS.GDK_SIZING; name=Converter.wcsToMbcs("nesw-resize", true); break;
case SWT.CURSOR_SIZENS: shape = OS.GDK_DOUBLE_ARROW; break;
- case SWT.CURSOR_SIZENWSE: shape = OS.GDK_SIZING; break;
+ case SWT.CURSOR_SIZENWSE: shape = OS.GDK_SIZING; name=Converter.wcsToMbcs("nwse-resize", true); break;
case SWT.CURSOR_SIZEWE: shape = OS.GDK_SB_H_DOUBLE_ARROW; break;
case SWT.CURSOR_SIZEN: shape = OS.GDK_TOP_SIDE; break;
case SWT.CURSOR_SIZES: shape = OS.GDK_BOTTOM_SIDE; break;

Back to the top