Re: [java-gnome-hackers] GtkWindow XID
Brought to you by:
afcowie
From: Goundy <go...@gm...> - 2009-10-25 13:59:56
|
Goundy wrote: > Emmanuel Rodriguez wrote: >> On Sun, Oct 25, 2009 at 2:57 PM, Goundy <go...@gm... >> <mailto:go...@gm...>> wrote: >> >> Emmanuel Rodriguez wrote: >> >> >> Are you sure then that eclipse is picking up the right >> gtkjini.so file? >> Did you install your new bindings? >> >> >> Oh my! when I rebuild my branch, actually my method is being >> erased as the GdkDrawable file gets replace by the new generated >> one which doesn't contain my method. >> I guess I have to edit the source .def file to keep my method >> right ? >> >> I think so, I haven't used the java-gnome bindings in a long time. >> I wish that someone else that's using the bindings could help you :( >> >> -- >> Emmanuel Rodriguez > Okay thank you Emmanuel, you helped a lot :P > > Well, the generator is giving me: > > static final FIXME getXid(Drawable self) throws > BlacklistedMethodError { > throw new BlacklistedMethodError("long"); > } > > and I have the following code in GdkDrawable.defs: > > (define-method get_xid > (of-object "GdkDrawable") > (c-name "gdk_x11_drawable_get_xid") > (caller-owns-return #t) > (return-type "long") > ) > > Am I missing something here ? > Thanks > Oh I get the correct one :P (define-method get_xid (of-object "GdkDrawable") (c-name "gdk_x11_drawable_get_xid") (caller-owns-return #t) (return-type "gulong") ) Is fine, it gives: static final long getXid(Drawable self) { long result; if (self == null) { throw new IllegalArgumentException("self can't be null"); } synchronized (lock) { result = gdk_x11_drawable_get_xid(pointerOf(self)); return result; } } private static native final long gdk_x11_drawable_get_xid(long self); But when I build java-gnome I get: generated/bindings/org/gnome/gdk/GdkDrawable.c: In function 'Java_org_gnome_gdk_GdkDrawable_gdk_1x11_1drawable_1get_1xid': generated/bindings/org/gnome/gdk/GdkDrawable.c:1044: error: implicit declaration of function 'gdk_x11_drawable_get_xid' compilation terminated due to -Wfatal-errors. make: *** [build-java] Error 1 Which is really weird... Ideas are welcome :) |