Re: Single and double clicks on a row in treeview (gtkmm 2)
- From: Phil Wolff <adiabat centurylink net>
- To: Kamalpreet Grewal <grewalkamal005 gmail com>, gtkmm-list gnome org
- Subject: Re: Single and double clicks on a row in treeview (gtkmm 2)
- Date: Fri, 8 Jul 2016 05:22:14 -0700
I've never done that. Perhaps calling get_tree_view()->get_cursor() from
the slot? It's reasonable to think that focus_in should happen before
signal_changed...
On 2016/07/08 02:47, Kamalpreet Grewal wrote:
Thank you for your reply. I am using the former approach. I also want
to keep a track of which column of the row is clicked. For the slot
connected to TreeView::signal_row_activated() which had arguments
(const Gtk::TreeModel::Path& path, Gtk::TreeViewColumn* col), I was
able to get the column clicked using 'col' here. Taking
TreeSelection::signal_changed(), since the associated slot does not
take any arguments, what can be the method to get the column of the
selected row on which mouse was clicked?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]