From 8cbbdf920cb9806aa12adf529138ac1d9154e127 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Genevi=C3=A8ve=20Bastien?= Date: Tue, 18 Oct 2016 16:56:02 -0400 Subject: [PATCH] tmf.ui: bug 505695 fix time graph views with GTK MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: Ib7cab31753d19e0a1d5766235dcdf88750f69a96 Signed-off-by: Geneviève Bastien Reviewed-on: https://git.eclipse.org/r/83473 Reviewed-by: Hudson CI Reviewed-by: Patrick Tasse Tested-by: Patrick Tasse --- .../tmf/ui/widgets/timegraph/TimeGraphCombo.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/TimeGraphCombo.java b/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/TimeGraphCombo.java index de2c062932..0c27d2515b 100644 --- a/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/TimeGraphCombo.java +++ b/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/TimeGraphCombo.java @@ -1380,18 +1380,6 @@ public class TimeGraphCombo extends Composite { tree.removePaintListener(this); doAlignTreeItems(); redraw(); - /* - * Bug in GTK. Calling setTopItem() can scroll to the wrong item - * when the 'tree view' is dirty. Set it again once it is clean. - */ - if (SWT.getPlatform().equals("gtk")) { //$NON-NLS-1$ - tree.getDisplay().asyncExec(() -> { - TreeItem topItem = tree.getTopItem(); - if (!tree.isDisposed() && topItem != null && !topItem.isDisposed()) { - tree.setTopItem(topItem); - } - }); - } } }); /* Make sure the paint event is triggered. */ -- 2.34.1