How do I change the mouse cursor on a TextView (or how do I get the “right” GdkWindow from a TextView)?
As described in FAQ 5.6, and similarly to the GtkEntry discussed in FAQ 14.3, the TextView widget is made up of several underlying GdkWindows. The actual text window already has a cursor set on it (the i-beam cursor), but it’s not the TextView’s main window, which is why using a plain TextView.get_window() call won’t work.