diff options
author | Xi Yan | 2019-04-01 17:17:47 +0000 |
---|---|---|
committer | Xi Yan | 2019-04-01 17:17:47 +0000 |
commit | 5cd547013e057edf020e3f048738eda50818fdb3 (patch) | |
tree | 3e213e548f4dc95dda1c3f01951b45d955562c7e /bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTK.java | |
parent | 5db172a429a6c933259f091ef7e4ddb493a01f31 (diff) | |
download | eclipse.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.java | 4 |
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); |