Re: GtkTreeView: how to get the cell with current focus?

2018-07-12 Thread Reuben Rissler
I do this all the time in Python with: def key_tree_tab(self, treeview, event): keyname = Gdk.keyval_name(event.keyval) path, col = treeview.get_cursor() # only visible columns!! columns = [c for c in treeview.get_columns() if c.get_visible()] colnum =

Re: GtkTreeView: how to get the cell with current focus?

2018-07-12 Thread Lars Paulsen
Hi All, 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

GtkTreeView: how to get the cell with current focus?

2018-07-12 Thread Lars Paulsen
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), , _column); is doing the job. I can handle the path, it gives me the row which has the