File tree Expand file tree Collapse file tree 2 files changed +2
-22
lines changed
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets Expand file tree Collapse file tree 2 files changed +2
-22
lines changed Original file line number Diff line number Diff line change @@ -1735,26 +1735,6 @@ public Point toDisplay(int x, int y) {
17351735 return new Point (x , y );
17361736}
17371737
1738- Point toDisplayInPixels (int x , int y ) {
1739- checkWidget ();
1740-
1741- int [] origin_x = new int [1 ], origin_y = new int [1 ];
1742- if (GTK .GTK4 ) {
1743- Point origin = getControlOrigin ();
1744- origin_x [0 ] = origin .x ;
1745- origin_y [0 ] = origin .y ;
1746- } else {
1747- long window = eventWindow ();
1748- GDK .gdk_window_get_origin (window , origin_x , origin_y );
1749- }
1750-
1751- if ((style & SWT .MIRRORED ) != 0 ) x = getClientWidth () - x ;
1752- x += origin_x [0 ];
1753- y += origin_y [0 ];
1754-
1755- return new Point (x , y );
1756- }
1757-
17581738/**
17591739 * Returns a point which is the result of converting the
17601740 * argument, which is specified in coordinates relative to
Original file line number Diff line number Diff line change 11/*******************************************************************************
2- * Copyright (c) 2000, 2025 IBM Corporation and others.
2+ * Copyright (c) 2000, 2026 IBM Corporation and others.
33 *
44 * This program and the accompanying materials
55 * are made available under the terms of the Eclipse Public License 2.0
@@ -522,7 +522,7 @@ long gtk3_key_press_event(long widget, long eventPtr) {
522522 } else {
523523 cursorX += width / 2 ;
524524 }
525- display .setCursorLocation (parent .toDisplayInPixels (cursorX , cursorY ));
525+ display .setCursorLocation (parent .toDisplay (cursorX , cursorY ));
526526 }
527527 break ;
528528 }
You can’t perform that action at this time.
0 commit comments