tmf.ui: bug 505695 fix time graph views with GTK
authorGeneviève Bastien <gbastien+lttng@versatic.net>
Tue, 18 Oct 2016 20:56:02 +0000 (16:56 -0400)
committerGenevieve Bastien <gbastien+lttng@versatic.net>
Mon, 24 Oct 2016 16:45:09 +0000 (12:45 -0400)
Change-Id: Ib7cab31753d19e0a1d5766235dcdf88750f69a96
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/83473
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/TimeGraphCombo.java

index de2c062932a24ed642df070aa87c1f914fffc06a..0c27d2515b296c2fc8907e5f5217a580e6fa2457 100644 (file)
@@ -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. */
This page took 0.026889 seconds and 5 git commands to generate.