Re: [java-gnome-hackers] GtkWindow XID
Brought to you by:
afcowie
From: Goundy <go...@gm...> - 2009-10-24 14:24:26
|
Goundy wrote: > Emmanuel Rodriguez thank you very much, you helped lot > > Emmanuel Rodriguez wrote: >> >> >> the XID has to be taken from GdkDrawable, from which GdkWindow >> inherits. You used a GtkWindow, instead of GdkWindow. I've checked >> the doc of GdkDrawable [1] and it is missing the accessor for xid >> wich in C is provide by the function gdk_x11_drawable_get_xid [2]. >> Without that accesor you will not be able to take the XID of a window. >> >> >> >> -- >> Emmanuel Rodriguez > The only problem now is that I'm getting: > Exception in thread "main" java.lang.UnsatisfiedLinkError: > org.gnome.gdk.GdkDrawable.gdk_x11_drawable_get_xid(J)I > at org.gnome.gdk.GdkDrawable.gdk_x11_drawable_get_xid(Native Method) > at org.gnome.gdk.GdkDrawable.getXID(GdkDrawable.java:508) > > And I added a call to that native function as: > > GdkWindow.java: > > 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; > } > } > > Any ideas ? > Thanks > Oh Sorry, I meant GdkDrawable.java * |