/[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.65 by mark, Sat Jun 26 16:06:47 2004 UTC revision 1.66 by mark, Thu Jul 22 19:45:38 2004 UTC
# Line 115  public class GtkComponentPeer extends Gt Line 115  public class GtkComponentPeer extends Gt
115      this.awtComponent = awtComponent;      this.awtComponent = awtComponent;
116      insets = new Insets (0, 0, 0, 0);      insets = new Insets (0, 0, 0, 0);
117    
     /* temporary try/catch block until all peers use this creation method */  
     try {  
118        create ();        create ();
119                
120        GtkArgList args = new GtkArgList ();        GtkArgList args = new GtkArgList ();
# Line 147  public class GtkComponentPeer extends Gt Line 145  public class GtkComponentPeer extends Gt
145    
146        Rectangle bounds = awtComponent.getBounds ();        Rectangle bounds = awtComponent.getBounds ();
147        setBounds (bounds.x, bounds.y, bounds.width, bounds.height);        setBounds (bounds.x, bounds.y, bounds.width, bounds.height);
148      } catch (RuntimeException ex) { ; }      setVisible (awtComponent.isVisible ());
149    }    }
150    
151    public int checkImage (Image image, int width, int height,    public int checkImage (Image image, int width, int height,
# Line 449  public class GtkComponentPeer extends Gt Line 447  public class GtkComponentPeer extends Gt
447    
448    public void setVisible (boolean b)    public void setVisible (boolean b)
449    {    {
450      set ("visible", b);      if (b)
451    }        show ();
452          else
453    public void hide ()        hide ();
   {  
     setVisible (false);  
454    }    }
455    
456    public void show ()    public native void hide ();
457    {    public native void show ();
     setVisible (true);  
   }  
458    
459    protected void postMouseEvent(int id, long when, int mods, int x, int y,    protected void postMouseEvent(int id, long when, int mods, int x, int y,
460                                  int clickCount, boolean popupTrigger)                                  int clickCount, boolean popupTrigger)
# Line 514  public class GtkComponentPeer extends Gt Line 508  public class GtkComponentPeer extends Gt
508    
509    public void getArgs (Component component, GtkArgList args)    public void getArgs (Component component, GtkArgList args)
510    {    {
     args.add ("visible", component.isVisible ());  
511      args.add ("sensitive", component.isEnabled ());      args.add ("sensitive", component.isEnabled ());
512    
513      ComponentPeer p;      ComponentPeer p;

Legend:
Removed from v.1.65  
changed lines
  Added in v.1.66

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