I did some further tests and the addresses returned in focus_column are
the same as the columns I created with "gtk_tree_view_column_new();".
Well, it's quite obvious but somehow I expected that there is some API
function which returns an index for a column. Anyway, I will continue by
comparing the addresses to find out which column I am in. I need this to
find out which column "is next". I want to set the focus to the next
cell/column if the user presses tab.
If anyone knows a better solution to determine the column/next column
please let me know.
Am 12.07.2018 um 18:11 schrieb Lars Paulsen:
I got a little problem with a GtkTreeView and with getting the cell
which actually has got the focus:
From the API documentation it seems like
gtk_tree_view_get_cursor(GTK_TREE_VIEW(tree), &path, &focus_column);
is doing the job. I can handle the path, it gives me the row which has
the focus. But how do I get the index of the cell from focus_column
(alias GtkTreeViewColumn)? A web search revealed some old forum
entries which seem to state that it is not supported.
Do I have to check the column name or compare the addresses of my
Thanks for any help in advance.
gtk-app-devel-list mailing list