From: Geneviève Bastien Date: Tue, 18 Oct 2016 20:56:02 +0000 (-0400) Subject: tmf.ui: bug 505695 fix time graph views with GTK X-Git-Url: http://git.efficios.com/?p=deliverable%2Ftracecompass.git;a=commitdiff_plain;h=8cbbdf920cb9806aa12adf529138ac1d9154e127 tmf.ui: bug 505695 fix time graph views with GTK 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 --- 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. */