When a new GtkTreeView
is exposed, one finds it in a state without any cursor displayed. Once focused, the cursor is there, even when the focus is lost. I am looking for a method to get rid of the cursor on demand.
The GTK+ reference claims, that the function gtk_tree_view_set_cursor
does the job whenever the GtkTreePath*
argument is invalid for the GtkTreeView*
. The term "invalid" can be interpreted in many ways. I experimented with many possibilities with results ranging between segfault and no effect at all. Therefore I would like ask:
Q1: Is it even possible to unset a cursor on a GtkTreeView?
Q2: If so, would you please provide a simple example, preferably in plain C?