From b544cc1a498de3fd0b2af24bb1c30ba1978244fd Mon Sep 17 00:00:00 2001 From: Silenio Quarti Date: Mon, 24 Sep 2012 16:28:17 -0400 Subject: Bug 387641 - Use Cairo instead of Gdk deprecated methods in Sash widget drawBand() --- .../org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java index c2da121da4..dd76101d62 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java @@ -113,6 +113,9 @@ public void addSelectionListener (SelectionListener listener) { } static int checkStyle (int style) { + if (OS.USE_CAIRO) { + style |= SWT.SMOOTH; + } return checkBits (style, SWT.HORIZONTAL, SWT.VERTICAL, 0, 0, 0, 0); } @@ -144,7 +147,6 @@ void createHandle (int index) { void drawBand (int x, int y, int width, int height) { if ((style & SWT.SMOOTH) != 0) return; - //TODO: Use Cairo long /*int*/ window = gtk_widget_get_window (parent.paintHandle()); if (window == 0) return; byte [] bits = {-86, 85, -86, 85, -86, 85, -86, 85}; -- cgit