GtkTreeView: how to get the cell with current focus?



Hello All,

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 columns?

Thanks for any help in advance.

Best Regards,
Lars



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]