/[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.30 by mark, Sat Jul 31 16:39:15 2004 UTC revision 1.31 by mkoch, Wed Sep 22 11:03:09 2004 UTC
# Line 52  public class GtkButtonPeer extends GtkCo Line 52  public class GtkButtonPeer extends GtkCo
52  {  {
53    native void create (String label);    native void create (String label);
54    
   public native void connectJObject ();  
55    public native void connectSignals ();    public native void connectSignals ();
56    
57    native void gtkSetFont (String name, int style, int size);    native void gtkWidgetSetFont (String name, int style, int size);
58    native void gtkSetLabel (String label);    native void gtkSetLabel (String label);
59    native void gtkWidgetSetForeground (int red, int green, int blue);    native void gtkWidgetSetForeground (int red, int green, int blue);
60    native void gtkActivate ();    native void gtkActivate ();
61      native void gtkWidgetRequestFocus ();
62    
63    public GtkButtonPeer (Button b)    public GtkButtonPeer (Button b)
64    {    {
# Line 86  public class GtkButtonPeer extends GtkCo Line 86  public class GtkButtonPeer extends GtkCo
86          if (!me.isConsumed ()          if (!me.isConsumed ()
87              && (me.getModifiersEx () & MouseEvent.BUTTON1_DOWN_MASK) != 0              && (me.getModifiersEx () & MouseEvent.BUTTON1_DOWN_MASK) != 0
88              && awtComponent.getBounds().contains(p))              && awtComponent.getBounds().contains(p))
89            postActionEvent (((Button)awtComponent).getActionCommand (),            postActionEvent (((Button) awtComponent).getActionCommand (),
90                             me.getModifiersEx ());                             me.getModifiersEx ());
91        }        }
92    
93      if (e.getID () == KeyEvent.KEY_PRESSED)      if (e.getID () == KeyEvent.KEY_PRESSED)

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

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