equal
deleted
inserted
replaced
203 |
203 |
204 Color getGTKColor(int state, ColorType type) { |
204 Color getGTKColor(int state, ColorType type) { |
205 return getGTKColor(null, state, type); |
205 return getGTKColor(null, state, type); |
206 } |
206 } |
207 |
207 |
|
208 Color getGTKColor(int widgetType, int state, int colorType) { |
|
209 synchronized (sun.awt.UNIXToolkit.GTK_LOCK) { |
|
210 int rgb = nativeGetColorForState(widgetType, state, |
|
211 colorType); |
|
212 return new ColorUIResource(rgb); |
|
213 } |
|
214 } |
|
215 |
208 /** |
216 /** |
209 * Returns the color for the specified state. |
217 * Returns the color for the specified state. |
210 * |
218 * |
211 * @param context SynthContext identifying requestor |
219 * @param context SynthContext identifying requestor |
212 * @param state to get the color for |
220 * @param state to get the color for |