/[classpath]/classpath/gnu/java/awt/peer/gtk/GtkComponentPeer.java
ViewVC logotype

Diff of /classpath/gnu/java/awt/peer/gtk/GtkComponentPeer.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.53 by fitzsim, Thu Oct 2 18:39:54 2003 UTC revision 1.54 by fitzsim, Wed Oct 8 23:40:49 2003 UTC
# Line 86  public class GtkComponentPeer extends Gt Line 86  public class GtkComponentPeer extends Gt
86    native void gtkWidgetGetDimensions(int[] dim);    native void gtkWidgetGetDimensions(int[] dim);
87    native void gtkWidgetGetLocationOnScreen(int[] point);    native void gtkWidgetGetLocationOnScreen(int[] point);
88    native void gtkWidgetSetCursor (int type);    native void gtkWidgetSetCursor (int type);
89      native void gtkWidgetSetBackground (int red, int green, int blue);
90      native void gtkWidgetSetForeground (int red, int green, int blue);
91    
92    void create ()    void create ()
93    {    {
# Line 114  public class GtkComponentPeer extends Gt Line 116  public class GtkComponentPeer extends Gt
116    
117        connectHooks ();        connectHooks ();
118    
119        if (awtComponent.getForeground () == null)        if (awtComponent.getForeground () != null)
120          awtComponent.setForeground (getForeground ());          setForeground (awtComponent.getForeground ());
121        if (awtComponent.getBackground () == null)        if (awtComponent.getBackground () != null)
122          awtComponent.setBackground (getBackground ());          setBackground (awtComponent.getBackground ());
       //        if (c.getFont () == null)  
       //        c.setFont (cp.getFont ());  
123        if (awtComponent.getFont() != null)        if (awtComponent.getFont() != null)
124          setFont(awtComponent.getFont());          setFont(awtComponent.getFont());
125    
# Line 276  public class GtkComponentPeer extends Gt Line 276  public class GtkComponentPeer extends Gt
276    
277    public void setBackground (Color c)    public void setBackground (Color c)
278    {    {
279      // System.out.println ("setBackground [UNIMPLEMENTED");      gtkWidgetSetBackground (c.getRed(), c.getGreen(), c.getBlue());
280    }    }
281    
282    native public void setNativeBounds (int x, int y, int width, int height);    native public void setNativeBounds (int x, int y, int width, int height);
# Line 314  public class GtkComponentPeer extends Gt Line 314  public class GtkComponentPeer extends Gt
314    
315    public void setForeground (Color c)    public void setForeground (Color c)
316    {    {
317      // System.out.println ("setForeground [UNIMPLEMENTED");      gtkWidgetSetForeground (c.getRed(), c.getGreen(), c.getBlue());
318    }    }
319    
320    public Color getForeground ()    public Color getForeground ()

Legend:
Removed from v.1.53  
changed lines
  Added in v.1.54

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26