diff options
author | Eric Williams | 2017-12-18 18:56:27 +0000 |
---|---|---|
committer | Eric Williams | 2017-12-18 18:56:27 +0000 |
commit | c2eba6fd024dcb4361d239a307b7a317ecf8921c (patch) | |
tree | 24d5eb252503333ef065730d0a6edd4bab424f50 /tests/org.eclipse.swt.tests.gtk | |
parent | e174104bf334224829ed28fa0bbe4d25f60e3003 (diff) | |
download | eclipse.platform.swt-c2eba6fd024dcb4361d239a307b7a317ecf8921c.tar.gz eclipse.platform.swt-c2eba6fd024dcb4361d239a307b7a317ecf8921c.tar.xz eclipse.platform.swt-c2eba6fd024dcb4361d239a307b7a317ecf8921c.zip |
Bug 483791: [GTK3] setBackground overrides GC drawing in PaintListener
Fix typo in bug snippet.
Change-Id: I55a9fe0c4e933b6fe8bbfee45b0e9fcb51aa7ba7
Signed-off-by: Eric Williams <ericwill@redhat.com>
Diffstat (limited to 'tests/org.eclipse.swt.tests.gtk')
-rw-r--r-- | tests/org.eclipse.swt.tests.gtk/Bug Snippets/org/eclipse/swt/tests/gtk/snippets/Bug483791_setBackgroundGC.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/org.eclipse.swt.tests.gtk/Bug Snippets/org/eclipse/swt/tests/gtk/snippets/Bug483791_setBackgroundGC.java b/tests/org.eclipse.swt.tests.gtk/Bug Snippets/org/eclipse/swt/tests/gtk/snippets/Bug483791_setBackgroundGC.java index 1eacc9e7f5..d22ea96853 100644 --- a/tests/org.eclipse.swt.tests.gtk/Bug Snippets/org/eclipse/swt/tests/gtk/snippets/Bug483791_setBackgroundGC.java +++ b/tests/org.eclipse.swt.tests.gtk/Bug Snippets/org/eclipse/swt/tests/gtk/snippets/Bug483791_setBackgroundGC.java @@ -6,7 +6,7 @@ import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Display; -import org.eclipse.swt.widgets.Link; +import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.MessageBox; import org.eclipse.swt.widgets.Shell; @@ -24,7 +24,7 @@ public final class Bug483791_setBackgroundGC { final Shell shell = new Shell(display); shell.setLayout(new GridLayout()); - final Link l = new Link(shell, SWT.PUSH); + final Label l = new Label(shell, SWT.None); l.setText("ASDQWE"); l.addPaintListener(arg0 -> arg0.gc.drawLine(0, 0, arg0.width, arg0.height)); |