Bug 552830 - [GTK] Content assist and debug hover pop-ups lose content on scroll after resize
Revert functional changes of 092d68d1c71497fe32622e65742008ee50a1bac2.
Change-Id: Ie0b3c4a94fb6b07031a0a65f897f21b52637fbe7
Signed-off-by: Eric Williams <ericwill@redhat.com>
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 67ebd44..f55ee94 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
@@ -290,15 +290,6 @@
OS.g_signal_handlers_unblock_matched (modelHandle, mask, signal_id, 0, 0, 0, handle);
if (item.isDisposed ()) return false;
}
- /*
- * A commit in GTK3.18 caused bug 531048 due to internal changes in GtkStyleContext
- * invalidation. The fix is to invalidate the GtkStyleContext manually when changing
- * SWT.VIRTUAL Table content. Without it, the internal caching mechanism causes
- * the wrong cells to be rendered.
- */
- if (!GTK.GTK4 && GTK.GTK_VERSION >= OS.VERSION(3, 18, 0)) {
- GTK.gtk_style_context_invalidate(GTK.gtk_widget_get_style_context(handle));
- }
return true;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java
index a404b04..5b6e392 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java
@@ -340,15 +340,6 @@
OS.g_signal_handlers_unblock_matched (modelHandle, mask, signal_id, 0, 0, 0, handle);
if (item.isDisposed ()) return false;
}
- /*
- * A commit in GTK3.18 caused bug 531048 due to internal changes in GtkStyleContext
- * invalidation. The fix is to invalidate the GtkStyleContext manually when changing
- * SWT.VIRTUAL Table content. Without it, the internal caching mechanism causes
- * the wrong cells to be rendered.
- */
- if (!GTK.GTK4 && GTK.GTK_VERSION >= OS.VERSION(3, 18, 0)) {
- GTK.gtk_style_context_invalidate(GTK.gtk_widget_get_style_context(handle));
- }
return true;
}