src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKStyle.java
changeset 57648 2b38409a336e
parent 53801 2a3bc7e69b31
equal deleted inserted replaced
57647:bcc706c719d7 57648:2b38409a336e
   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