[gtkmm] How do I connect to TreeView::signal_select_cursor_row() ?



Does anyone know how to connect to TreeView::signal_select_cursor_row()?

Glademm is not currently handling it properly, so I am trying to do it
by hand (without finding any examples in the documentation), but have
been unable to find the right combination.

glademm generated:

myTreeview->signal_select_cursor_row().connect(SigC::slot(*this,
&myDialog_glade::on_myTreeview_select_cursor_row));

gcc said:

no matching function for call to 
`Glib::SignalProxy1<void, bool>::connect (SigC::Slot0<void>)'
/usr/include/gtkmm-2.0/glibmm/signalproxy.h:134: candidates are:
SigC::Connection Glib::SignalProxy1<R, 
P1>::connect (const SigC::Slot1<R, P1> &, bool = true) [with R = void,
P1 = bool]

I have looked through an assortment of the documentation and have not
found the answer.  I have also experimented/guessed and not found the
solution yet either.

Anyone know?

Thanks,

Mark

PS  The answer to this should be added to the treeview tutorial or
example I think.






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