diff options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java index f45f78e801..463fab0d94 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java @@ -64,7 +64,6 @@ public class Composite extends Scrollable { Layout layout; Control[] tabList; int layoutCount, backgroundMode; - GdkRGBA background; static final String NO_INPUT_METHOD = "org.eclipse.swt.internal.gtk.noInputMethod"; //$NON-NLS-1$ @@ -666,23 +665,6 @@ public Rectangle getClientArea () { return super.getClientArea(); } -@Override -GdkColor getContextBackground () { - if (OS.GTK_VERSION >= OS.VERSION(3, 16, 0)) { - if (background != null) { - GdkColor color = new GdkColor (); - color.red = (short)(background.red * 0xFFFF); - color.green = (short)(background.green * 0xFFFF); - color.blue = (short)(background.blue * 0xFFFF); - return color; - } else { - return display.COLOR_WIDGET_BACKGROUND; - } - } else { - return super.getContextBackground(); - } -} - /** * Returns layout which is associated with the receiver, or * null if one has not been set. @@ -1500,18 +1482,6 @@ public void setBackgroundMode (int mode) { } @Override -void setBackgroundColor (long /*int*/ context, long /*int*/ handle, GdkRGBA rgba) { - if (OS.GTK_VERSION >= OS.VERSION(3, 16, 0)) { - background = rgba; - String color = gtk_rgba_to_css_string(background); - String css = "SwtFixed {background-color: " + color + "}"; - gtk_css_provider_load_from_css(context, css); - } else { - super.setBackgroundColor(context, handle, rgba); - } -} - -@Override int setBounds (int x, int y, int width, int height, boolean move, boolean resize) { int result = super.setBounds (x, y, width, height, move, resize); if ((result & RESIZED) != 0 && layout != null) { |