[Gtk-sharp-list] Text Under Pointer in a Gtk.TextView

Todd Berman todd.berman@medsphere.com
Tue, 10 Aug 2004 01:11:17 -0400


On Mon, 2004-08-09 at 23:48 -0500, Tomar wrote:
> Thanks for the hints.  They definitely pointed me to the right places. 
> It appears to boil down to something like this:
> 
> this.GdkWindow.GetPointer(out xloc,out yloc,out mask);
> TextIter ti = this.GetIterAtLocation(xloc,yloc);

You are hitting the wrong GdkWindow i think. Use:

this.GetWindow (TextWindow.Widget).GetPointer (out xloc, out yloc, out
mask);

That might help, not sure if the api is exactly that, but its similar.

--Todd