/[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.28 by mkoch, Mon May 31 21:11:40 2004 UTC revision 1.29 by mark, Fri Jul 30 23:16:58 2004 UTC
# Line 50  import java.awt.peer.ButtonPeer; Line 50  import java.awt.peer.ButtonPeer;
50  public class GtkButtonPeer extends GtkComponentPeer  public class GtkButtonPeer extends GtkComponentPeer
51      implements ButtonPeer      implements ButtonPeer
52  {  {
53    native void create ();    native void create (String label);
54    
55    public native void connectJObject ();    public native void connectJObject ();
56    public native void connectSignals ();    public native void connectSignals ();
57    
58    native void gtkSetFont (String name, int style, int size);    native void gtkSetFont (String name, int style, int size);
59    native void gtkSetLabel(String label);    native void gtkSetLabel (String label);
60    native void gtkWidgetSetForeground (int red, int green, int blue);    native void gtkWidgetSetForeground (int red, int green, int blue);
61    native void gtkActivate ();    native void gtkActivate ();
62    
# Line 64  public class GtkButtonPeer extends GtkCo Line 65  public class GtkButtonPeer extends GtkCo
65      super (b);      super (b);
66    }    }
67    
68      void create ()
69      {
70        create (((Button) awtComponent).getLabel ());
71      }
72    
73    public void setLabel (String label)    public void setLabel (String label)
74    {    {
75      gtkSetLabel(label);      gtkSetLabel(label);
# Line 97  public class GtkButtonPeer extends GtkCo Line 103  public class GtkButtonPeer extends GtkCo
103    
104      super.handleEvent (e);      super.handleEvent (e);
105    }    }
   
   public void getArgs (Component component, GtkArgList args)  
   {  
     super.getArgs (component, args);  
   
     args.add ("label", ((Button)component).getLabel ());  
   }  
106  }  }

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

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