Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXi Yan2019-04-01 17:17:47 +0000
committerXi Yan2019-04-01 17:17:47 +0000
commit5cd547013e057edf020e3f048738eda50818fdb3 (patch)
tree3e213e548f4dc95dda1c3f01951b45d955562c7e /bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTK.java
parent5db172a429a6c933259f091ef7e4ddb493a01f31 (diff)
downloadeclipse.platform.swt-5cd547013e057edf020e3f048738eda50818fdb3.tar.gz
eclipse.platform.swt-5cd547013e057edf020e3f048738eda50818fdb3.tar.xz
eclipse.platform.swt-5cd547013e057edf020e3f048738eda50818fdb3.zip
Bug 545994 - [GTK3][Tree] Visible area moved when only expanding element
Fix tree jump regression from bug 489751. Do not set Tree selection to first item. Keep track of TreeItem parent and deselect GtkTreeSelection after item is disposed. Remove /*int*/ cast. Tested with Bug489751_TreeItemDisposeSelect, Eclipse on X11 and Wayland. Change-Id: Ice0fbe7d4e656ce63a89cddf2fba5c990c26e085 Signed-off-by: Xi Yan <xixiyan@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTK.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTK.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTK.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTK.java
index 250785978c..e45bcb2fc7 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTK.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTK.java
@@ -8076,8 +8076,8 @@ public class GTK extends OS {
* @param path cast=(GtkTreePath **)
* @param focus_column cast=(GtkTreeViewColumn **)
*/
- public static final native void _gtk_tree_view_get_cursor(long tree_view, long /*int*/[] path, long /*int*/[] focus_column);
- public static final void gtk_tree_view_get_cursor(long tree_view, long /*int*/[] path, long /*int*/[] focus_column) {
+ public static final native void _gtk_tree_view_get_cursor(long tree_view, long [] path, long [] focus_column);
+ public static final void gtk_tree_view_get_cursor(long tree_view, long [] path, long [] focus_column) {
lock.lock();
try {
_gtk_tree_view_get_cursor(tree_view, path, focus_column);

Back to the top