Re: [java-gnome-hackers] GtkWindow XID
Brought to you by:
afcowie
From: Emmanuel R. <emm...@gm...> - 2009-10-24 17:01:12
|
On Sat, Oct 24, 2009 at 4:22 PM, Goundy <go...@gm...> 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) > java-gnome is probably not linking against gdk-x11 Try to see if you can link it with gdk-x11-2.0 from pkg-config You can find the exact linker flags by running: pkg-config --libs gdk-x11-2.0 -- Emmanuel Rodriguez |