diff options
author | Alexander Kurtakov <akurtako@redhat.com> | 2013-07-12 19:09:45 +0300 |
---|---|---|
committer | Alexander Kurtakov <akurtako@redhat.com> | 2013-07-12 19:09:45 +0300 |
commit | 4c12d494486dd1ab75b7abc45b6e43b9bfe348e4 (patch) | |
tree | 83b1a153467937cbed0860d17834f759730da5f8 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java | |
parent | b23ea2e24f758a54ab6758b6481dfb86a9443288 (diff) | |
download | eclipse.platform.swt-4c12d494486dd1ab75b7abc45b6e43b9bfe348e4.tar.gz eclipse.platform.swt-4c12d494486dd1ab75b7abc45b6e43b9bfe348e4.tar.xz eclipse.platform.swt-4c12d494486dd1ab75b7abc45b6e43b9bfe348e4.zip |
Get rid of gtk_tree_view_set_enable_search .
Calls to it are useless on post 2.6 GTK versions.
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java index 97f645cfdb..22589a874e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java @@ -228,21 +228,7 @@ void createHandle (int index) { * shell. */ if ((getShell ().style & SWT.ON_TOP) != 0) { - /* - * Bug in GTK. Until GTK 2.6.5, calling gtk_tree_view_set_enable_search(FALSE) - * would prevent the user from being able to type in text to search the tree. - * After 2.6.5, GTK introduced Ctrl+F as being the key binding for interactive - * search. This meant that even if FALSE was passed to enable_search, the user - * can still bring up the search pop up using the keybinding. GTK also introduced - * the notion of passing a -1 to gtk_set_search_column to disable searching - * (including the search key binding). The fix is to use the right calls - * for the right version. - */ - if (OS.GTK_VERSION >= OS.VERSION (2, 6, 5)) { - OS.gtk_tree_view_set_search_column (handle, -1); - } else { - OS.gtk_tree_view_set_enable_search (handle, false); - } + OS.gtk_tree_view_set_search_column (handle, -1); } } |