Re: How do I get the number



Take a look at

gint * gtk_tree_path_get_indices (GtkTreePath *path);

with the  "GtkTreePath  *path"  parameter you get from the row-activated callback.

https://developer.gnome.org/gtk3/stable/GtkTreeModel.html#gtk-tree-path-get-indices



On 07/10/2018 20:04, Igor Korot via gtk-list wrote:
Hi, ALL,
For the GtkTreeView there is a "row-activated" signal:
https://developer.gnome.org/gtk3/stable/GtkTreeView.html#GtkTreeView-row-activated.

That function receives as a parameter

column the GtkTreeViewColumn in which the activation occurred.

The problem is (at least as I see it) is that it is not a simple integer
for the column number.

Is there a simple way to get a column number on which I activated
the row from this signal?

Thank you.
_______________________________________________
gtk-list mailing list
gtk-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-list





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