Skip to content

Commit a589ee9

Browse files
committed
[Gtk4] Fix Sash cursor not showing
Cursor names on Gtk 4 changed and the old names were not found.
1 parent 83fc24d commit a589ee9

File tree

1 file changed

+2
-2
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets

1 file changed

+2
-2
lines changed

bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@ void createHandle(int index) {
152152
if (GTK.GTK4) {
153153
GTK4.gtk_widget_set_focusable(handle, true);
154154
if ((style & SWT.VERTICAL) != 0) {
155-
defaultCursor = GDK.gdk_cursor_new_from_name("sb_h_double_arrow", 0);
155+
defaultCursor = GDK.gdk_cursor_new_from_name("ew-resize", 0);
156156
} else {
157-
defaultCursor = GDK.gdk_cursor_new_from_name("sb_v_double_arrow", 0);
157+
defaultCursor = GDK.gdk_cursor_new_from_name("ns-resize", 0);
158158
}
159159
} else {
160160
GTK3.gtk_widget_set_has_window(handle, true);

0 commit comments

Comments
 (0)