I'm trying to get the cursor position in from a GtkTextView (or anything that can be derived from that, say, a GtkTextBuffer or a GtkTextIter, etc.). I honestly have no idea how to do this. Can anybody point me in the right direction? I'm trying to get the result as a GtkTextIter, though I suppose I could assemble one manually from coordinates.

Thanks.