Reputation: 864
I am creating a graphical interface with glade that contents a treeview.
I want to have a button that is initially enabled by doing a simple click on a row of the treeview.
I am using row-activated
, but when I activate a row for the first time I have to double click the row.
Which signal should I use to detect the click to activate the row with a single click?
Upvotes: 2
Views: 993
Reputation: 222
I know this is an old question, but for future reference, for Python3 and Gtk3 what worked for me was:
myTree.set_property('activate-on-single-click', True)
Upvotes: 1
Reputation: 2302
GtkTreeView as an activate-on-single-click
property.
https://developer.gnome.org/gtk3/stable/GtkTreeView.html#GtkTreeView--activate-on-single-click
Upvotes: 1