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

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

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

revision 1.37 by mark, Sat Jul 2 20:32:12 2005 UTC revision 1.38 by fitzsim, Fri Aug 12 22:49:41 2005 UTC
# Line 46  import java.awt.event.KeyEvent; Line 46  import java.awt.event.KeyEvent;
46  import java.awt.event.MouseEvent;  import java.awt.event.MouseEvent;
47  import java.awt.peer.ButtonPeer;  import java.awt.peer.ButtonPeer;
48    
49    // A composite widget.  GtkButtons have transparent backgrounds.  An
50    // AWT Button is opaque.  To compensate, a GtkButtonPeer is a
51    // GtkButton packed in a GtkEventBox.
52  public class GtkButtonPeer extends GtkComponentPeer  public class GtkButtonPeer extends GtkComponentPeer
53      implements ButtonPeer      implements ButtonPeer
54  {  {
# Line 61  public class GtkButtonPeer extends GtkCo Line 64  public class GtkButtonPeer extends GtkCo
64    native void gtkWidgetRequestFocus ();    native void gtkWidgetRequestFocus ();
65    native void setNativeBounds (int x, int y, int width, int height);    native void setNativeBounds (int x, int y, int width, int height);
66    
67      // Because this is a composite widget, we need to retrieve the
68      // GtkButton's preferred dimensions, not the enclosing
69      // GtkEventBox's.
70      native void gtkWidgetGetPreferredDimensions (int[] dim);
71    
72    public GtkButtonPeer (Button b)    public GtkButtonPeer (Button b)
73    {    {
74      super (b);      super (b);

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38

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