Re: [gtkmm] Treeview selection



Looks about right to me. I've got several bits of code which are almost
the same as that in my current project in order to catch the selection
changed signal, and they work fine, so you should be okay with it.

On Sun, 2003-08-10 at 19:44, jerome buchler wrote:
> Thank you !
> 
> Last question :/
> 
> I linked the Treeview callback as following :
> 
> Glib::RefPtr<Gtk::TreeSelection> selection = m_TreeView.get_selection();
> selection->signal_changed().connect(slot(*this, 
> &CMainWindow::on_selection_change));
> 
> My goal is to catch in the "on_selection_change" method the name of the 
> selection (this is a single Treeview, with a unique column).
> 
> Is the callback link correct in order to catch the name of the selection ? 
> Or should i modify it ? I can't figure out.
> 
> thank you very much and sorry for the newbiness of my questions, i'm very 
> new to gtkmm and unfortunatly do not have enough time to read the whole api.

-- 
Matthew Walton <matthew alledora co uk>




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