Hi!
I keep on playing with the bindings.
One question:
When I have a method that returns an integer that is suposed to be the
Object's returned handle, is it correct to build a new empty object,
asign it the handle returned by the method and then return this brand
new object?
see what I mean:
public class Drawable extends GObject{
.....
...
public Colormap getColormap(){
ColorMap cmap=new Colormap();
cmap.handle=Drawable.gdk_get_colormap(handle);
return cmap;
}
native static final protected int gdk_drawable_get_colormap
(int drawable);
.....
...
}
thanks.
Rubio Jr.
|