The code you added only allows there to be one listener.
You should change this to allow multiple listeners. Other
than that it looks good.
-Jeff
On Sat, 2002-08-17 at 11:42, Mark Howard wrote:
> hi,
> I've implemented event listeners for the gtk Button widget. Please
> take a look to make sure everything is how you would like it.
>
> There's a very basic example in examples/gtk/buttons/ButtonEvents.java
>
> The changes involved:
> - Creating gtk/events/ButtonEvent.java and
> gtk/events/ButtonListener.java (mostly copied from the mouse listener)
> - Writing SetListener (stored internally as a weak reference) and event
> handing methods in Button.java
> - Adding initializeEventHandler method to Button.java
> - Adding calls to initializeEventHandler in button constructors
>
> --
>
> +----------------------------------------------+
> | Mark Howard cam.ac.uk mh344@ |
> | http://www.tildemh.com tildemh.com mh@ |
> +----------------------------------------------+
|