Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Williams2018-12-03 19:01:53 +0000
committerEric Williams2018-12-11 18:34:21 +0000
commit285c866c3270b67bc5c6c408538cb861a7476c15 (patch)
tree57999c47e6ecceb23356cdc94ce5d7e7d8575a0c /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java
parent7e9b37025bfdeb06191478d954b57429bf2300cf (diff)
downloadeclipse.platform.swt-285c866c3270b67bc5c6c408538cb861a7476c15.tar.gz
eclipse.platform.swt-285c866c3270b67bc5c6c408538cb861a7476c15.tar.xz
eclipse.platform.swt-285c866c3270b67bc5c6c408538cb861a7476c15.zip
Bug 541862: [GTK3] Increase minimum GTK3 version to 3.10
Remove old 3.8 and below code. Change-Id: Ib3cb77939a7146396c36e982a93e135b18318855 Signed-off-by: Eric Williams <ericwill@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java10
1 files changed, 4 insertions, 6 deletions
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 ec84a7ccef..e4693db1ea 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
@@ -3049,7 +3049,7 @@ void rendererRender (long /*int*/ cell, long /*int*/ cr, long /*int*/ window, lo
GTK.gtk_tree_view_get_background_area (handle, path, columnHandle, rect);
GTK.gtk_tree_path_free (path);
// Use the x and width information from the Cairo context. See bug 535124 and 465309.
- if (cr != 0 && GTK.GTK_VERSION > OS.VERSION(3, 9, 0) && GTK.GTK_VERSION <= OS.VERSION(3, 14, 8)) {
+ if (cr != 0 && GTK.GTK_VERSION <= OS.VERSION(3, 14, 8)) {
GdkRectangle r2 = new GdkRectangle ();
GDK.gdk_cairo_get_clip_rectangle (cr, r2);
rect.x = r2.x;
@@ -3624,10 +3624,8 @@ void setParentGdkWindow (Control child) {
* Tree's fixedHandle to the draw signal, and propagate the draw
* signal using gtk_container_propagate_draw(). See bug 531928.
*/
- if (GTK.GTK_VERSION >= OS.VERSION(3, 10, 0)) {
- hasChildren = true;
- connectFixedHandleDraw();
- }
+ hasChildren = true;
+ connectFixedHandleDraw();
}
void setScrollWidth (long /*int*/ column, TreeItem item) {
@@ -3964,7 +3962,7 @@ long /*int*/ windowProc (long /*int*/ handle, long /*int*/ arg0, long /*int*/ us
* If this Tree has any child widgets, propagate the draw signal
* to them using gtk_container_propagate_draw(). See bug 531928.
*/
- if (GTK.GTK_VERSION >= OS.VERSION(3, 10, 0) && hasChildren) {
+ if (hasChildren) {
propagateDraw(handle, arg0);
}
break;

Back to the top