Re: [java-gnome-hackers] Update
Brought to you by:
afcowie
From: Jeffrey M. <ku...@zo...> - 2003-12-26 16:19:05
|
On Fri, 2003-12-26 at 10:18, Luca De Rugeriis wrote: > > > 2) Complete the public interface for BindingSet > I'm managing to write this, but I need help, so straight to the > question: > > native static final protected int gtk_binding_set_find(String setName); > > I'm guessing this is an overloaded constructor (gtk docs doesn't help a > lot), but it has the same signature of > > native static final protected int gtk_binding_set_new(String setName); > > so I really need some pointers to make any further step. > Consider that any hints (generic or whatever) will be very helpful, > cause I've no experience with jni. > > I'm really willing to help with new classes, so once I'll get the hang > on it, I'll be able to complete further public interfaces a lot quicker. Sometimes we just have to guess what the gtk developers had in mind. GtkBindingSet is not documented so it falls into this category. It looks like this method will return a binding set that matches the provided name or NULL. I would make a static method that does just that. Something like static public findBindingSet(String setName) { return new BindingSet(gtk_binding_set_find(setName)); } This assumes that you have created a constructor that takes the handle. Please don't hesitate asking any questions on this list. My goal is to make sure as many people understand the bindings as possible. This will only allow us to move faster as more people are working on the bulk of the code. -Jeff |