getting absolute coordinates in windowless plugin
- From: raju85 <rana rajneesh gmail com>
- To: gtk-app-devel-list gnome org
- Subject: getting absolute coordinates in windowless plugin
- Date: Tue, 26 Oct 2010 04:20:54 -0700 (PDT)
Hi everyone,
I am working in GTK windowless plugin for mozila on linux.
I have to find the absoulte coordinates of my windowless plugin in
browser window.
I have registered the setwindow callback function for pluginfuncs.
When broswer runs, register callback setwindow function is called
very frequently.
The NPWindow variable we get in function gives strange value of
(member variables of struct
NPWindow) x, y coordinates.
When i tried the following,
gdkwindow=gdk_window_foreign_new(xid);
gdk_window_get_origin(gdkwindow,&x,&y);
it reports assertion `GDK_IS_WINDOW (window)' failed.
Is there any way to absoulte plugin's window coordinates from plugin
(w/o changing the mozilla code).
thanks
rajneesh
--
View this message in context:
http://old.nabble.com/getting-absolute-coordinates-in-windowless-plugin-tp30056520p30056520.html
Sent from the Gtk+ - Apps Dev mailing list archive at Nabble.com.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]