diff options
author | Xi Yan | 2019-01-31 20:17:10 +0000 |
---|---|---|
committer | Xi Yan | 2019-01-31 20:17:10 +0000 |
commit | ecf521c3d6bf4f8734858eb1d2b7d39de0a0ad17 (patch) | |
tree | 7ce515bbd5b783ba1f4c3f15833e6aed2b168031 /tests | |
parent | 2f5a98b4cbd50b436a5ffad0a1d5949f3b9a1b18 (diff) | |
download | eclipse.platform.swt-ecf521c3d6bf4f8734858eb1d2b7d39de0a0ad17.tar.gz eclipse.platform.swt-ecf521c3d6bf4f8734858eb1d2b7d39de0a0ad17.tar.xz eclipse.platform.swt-ecf521c3d6bf4f8734858eb1d2b7d39de0a0ad17.zip |
Revert "Bug 543984 - [GTK4] Adapt to GdkEventType constants changes"
This reverts commit 2f5a98b4cbd50b436a5ffad0a1d5949f3b9a1b18.
Change-Id: I60ebccca14cfdc5619bb763424f1289a44e3ed89
Diffstat (limited to 'tests')
-rw-r--r-- | tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug543984_GTK4EventTypeConstants.java | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug543984_GTK4EventTypeConstants.java b/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug543984_GTK4EventTypeConstants.java deleted file mode 100644 index 75724e3e21..0000000000 --- a/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug543984_GTK4EventTypeConstants.java +++ /dev/null @@ -1,66 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2018 Red Hat and others. All rights reserved. - * The contents of this file are made available under the terms - * of the GNU Lesser General Public License (LGPL) Version 2.1 that - * accompanies this distribution (lgpl-v21.txt). The LGPL is also - * available at http://www.gnu.org/licenses/lgpl.html. If the version - * of the LGPL at http://www.gnu.org is different to the version of - * the LGPL accompanying this distribution and there is any conflict - * between the two license versions, the terms of the LGPL accompanying - * this distribution shall govern. - * - * Contributors: - * Red Hat - initial API and implementation - *******************************************************************************/ -package org.eclipse.swt.tests.gtk.snippets; - -import org.eclipse.swt.events.MouseEvent; -import org.eclipse.swt.events.MouseListener; -import org.eclipse.swt.layout.FillLayout; -import org.eclipse.swt.widgets.Display; -import org.eclipse.swt.widgets.Shell; - -/* - * Title: - * How to run: - * Bug description: - * Expected results: - * GTK Version(s): - */ -public class Bug543984_GTK4EventTypeConstants { - - public static void main(String[] args) { - Display display = new Display(); - Shell shell = new Shell(display); - shell.setLayout(new FillLayout()); - shell.setSize(500, 200); - - shell.open(); - - shell.addMouseListener(new MouseListener() { - - @Override - public void mouseUp(MouseEvent e) { - System.out.println("MouseUp"); - - } - - @Override - public void mouseDown(MouseEvent e) { - System.out.println("MouseDown"); - - } - - @Override - public void mouseDoubleClick(MouseEvent e) { - // TODO: GDK_2BUTTON_PRESS removed in GTK4, no signal for double click - System.out.println("MouseDoubleClick"); - - } - }); - while (!shell.isDisposed()) { - if (!display.readAndDispatch()) - display.sleep(); - } - } -} |