Re: [java-gnome-hackers] BindingSet (was: Update)
Brought to you by:
afcowie
From: Jeffrey M. <ku...@zo...> - 2003-12-26 20:01:15
|
On Fri, 2003-12-26 at 14:47, Luca De Rugeriis wrote: > Il ven, 2003-12-26 alle 20:26, Luca De Rugeriis ha scritto: > /** > * Construct a new BindingSet using a handle to a native resource. > */ > public BindingSet(int handle) { > this.handle = handle; > } > > /** > * Construct a new BindingSet object. > * @param setName > */ > public BindingSet(String setName) { > handle = gtk_binding_set_new(setName); > } > > static public BindingSet findBindingSet(String setName) { > return new BindingSet(gtk_binding_set_find(setName)); > } > > public boolean activateBindings(int keyval, int modifier) { > return gtk_bindings_activate(object???, keyval, modifier); > } Not exactly sure what this object is. Need to look at the source to determine. > > public boolean activateBindingSet(int keyval, int modifier) { > return gtk_binding_set_activate(handle, keyval, modifier, object???); > } See my previous email. > > public void clearEntry(int keyval, int modifier) { > gtk_binding_entry_clear(handle, keyval, modifier); > } See my previous email. > > public void addPath(int pathType, String pathPattern, int priority) { > gtk_binding_set_add_path(handle, pathType, pathPattern, priority); > } First parameter is of type PatyType and third parameter is of type PathPriorityType. > This is what I've wrote. However I'm very unsure what the object int is > referring to. I've guessed that the BindingSet int is referring to > this.handle, so what is the object int's role? -Jeff |