Re: [java-gnome-hackers] BindingSet (was: Update)
Brought to you by:
afcowie
From: Jeffrey M. <ku...@zo...> - 2003-12-26 19:56:59
|
On Fri, 2003-12-26 at 14:26, Luca De Rugeriis wrote: > Il ven, 2003-12-26 alle 19:31, Luca De Rugeriis ha scritto: > Fine ;) > Next one: > native static final protected boolean gtk_bindings_activate(int object, int keyval, int modifier); > > I guess I could wrap this function with the following: > > public boolean activateBindings(int keyval, int modifier) { > return gtk_bindings_activate(handle, keyval, modifier); > } The keyval should be one of the public members of gdk.KeySymbol and the modifer should be of type gdk.ModifierType. The body should be as: return gtk_bindings_activate(handle, keyval, modifier.getValue); > > Is it right? Jeff, do you prefer this.handle? Is that int referring to > the object's handle at all? Yes. > > I'm guessing that the returned value is to tell if the method invocation > went well. Is this right? I believe so. -Jeff |