summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java
diff options
context:
space:
mode:
authorAlexander Kurtakov <akurtako@redhat.com>2013-03-08 14:26:30 +0200
committerAlexander Kurtakov <akurtako@redhat.com>2013-03-08 14:26:30 +0200
commitaedb399d989dae6fd1e97116b55f9e8e774be5cd (patch)
tree28740d7c73178c141f883f3e46a838fe5c41b7f4 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java
parentdbefe50146adbc679d5bc628d5453b9ca564fc4e (diff)
downloadeclipse.platform.swt-aedb399d989dae6fd1e97116b55f9e8e774be5cd.tar.gz
eclipse.platform.swt-aedb399d989dae6fd1e97116b55f9e8e774be5cd.tar.xz
eclipse.platform.swt-aedb399d989dae6fd1e97116b55f9e8e774be5cd.zip
Remove pre GTK 2.6 checks.
Code ment to be executed on GTK older than 2.6 would better be dropped.
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java13
1 files changed, 0 insertions, 13 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java
index b3c8825a72..73539b72cd 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java
@@ -2837,13 +2837,6 @@ void reskinChildren (int flags) {
boolean searchEnabled () {
/* Disable searching when using VIRTUAL */
if ((style & SWT.VIRTUAL) != 0) return false;
- if (OS.GTK_VERSION < OS.VERSION (2, 6, 0)) {
- int mask = SWT.PRIMARY_MODAL | SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL;
- Shell shell = getShell();
- if ((shell.style & mask) != 0) {
- return false;
- }
- }
return true;
}
@@ -3038,12 +3031,6 @@ int setBounds (int x, int y, int width, int height, boolean move, boolean resize
* after it has been resized.
*/
OS.gtk_widget_realize (handle);
- /*
- * Bug in GTK. An empty GtkTreeView fails to repaint the focus rectangle
- * correctly when resized on versions before 2.6.0. The fix is to force
- * the widget to redraw.
- */
- if (OS.GTK_VERSION < OS.VERSION (2, 6, 0) && itemCount == 0) redraw (false);
return result;
}