set_selection_function
- From: "Michael Comperchio" <mcmprch gmail com>
- To: gtkmm-list gnome org
- Subject: set_selection_function
- Date: Fri, 2 Mar 2007 16:59:31 -0500
m having a problem with ListView.I would like to be able to get at a
selection before it changes to see if I need to update a database
table. connecting to signal_changed() gets me access to the TreeView
row that the ListView is going to display, but with no access to the
ListView row that was displayed.( Make Sense? ). So, I found this
set_selection_function method that gets called before the selection
actually changes.
void Gtk::TreeSelection::set_select_function ( const SlotSelect& slot )
Great I says.Except that I don't seem to have a clue how to define the
function to be called. When I read the documentation it says that the
function needs to be
typedef
sigc::slot<bool, const Glib::RefPtr<TreeModel>&, const
TreeModel::Path&, bool> Gtk::TreeSelection::SlotSelect
I'm
okay with STL type stuff, but I'm having a hard time figuring out just
what my function definition should look like ( and the compiler is
having a hard time with all the defferent permutations of function
definition I've tried)
I just nead it to call an on_leave ()
function before the selection changes so I can change some data that
may/ maynot have been modified elsewhere on the screen....
thanks!
Michael S. Comperchio
332 South Main St.
Torrington, CT 06790
860 485 8488
mcmprch yahoo com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]