[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtkmm
Subject:    Re: Single and double clicks on a row in treeview (gtkmm 2)
From:       Phil Wolff <adiabat () centurylink ! net>
Date:       2016-07-08 12:22:14
Message-ID: 577F9AF5.8040204 () centurylink ! net
[Download RAW message or body]

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? 

_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic