Re: Adding event on a bool in ListStore
- From: "N poleone" <napoleone1981 gmail com>
- To: bob fis-cal com
- Cc: gtkmm-list gnome org
- Subject: Re: Adding event on a bool in ListStore
- Date: Thu, 26 Jan 2006 17:54:51 +0100
On 1/24/06, Bob Caryl <bob fis-cal com> wrote:
> Connect your callback slot to the
> Gtk::CellRendererToggle::signal_toggled signal.
>
> Bob
>
I'm trying to do that, but I can't reach it. This is my code:
dynamic_cast<Gtk::CellRendererToggle
*>(this->treeviewIntercettazioniRisultati->get_column_cell_renderer(10))->signal_toggled().connect(SigC::slot(*this,&window1::on_toggled),false);
where on_toggled is the callback function defined in window1 with the
widget treeviewIntercettazioniRisultati.
The error is on the line of the dynamic_cast and it is:
/usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h: In member
function `typename
sigc::adaptor_functor<T_functor>::deduce_result_type<T_arg1, void,
void, void, void, void, void>::type
sigc::adaptor_functor<T_functor>::operator()(T_arg1) const [with
T_arg1 = const Glib::ustring&, T_functor = SigC::Slot0<void>]':
/usr/include/sigc++-2.0/sigc++/functors/slot.h:136: instantiated
from `static T_return sigc::internal::slot_call1<T_functor, T_return,
T_arg1>::call_it(sigc::internal::slot_rep*, typename
sigc::type_trait<T_arg3>::take) [with T_functor = SigC::Slot0<void>,
T_return = void, T_arg1 = const Glib::ustring&]'
/usr/include/sigc++-2.0/sigc++/functors/slot.h:144: instantiated
from `static void*(* sigc::internal::slot_call1<T_functor, T_return,
T_arg1>::address())(void*) [with T_functor = SigC::Slot0<void>,
T_return = void, T_arg1 = const Glib::ustring&]'
/usr/include/sigc++-2.0/sigc++/functors/slot.h:529: instantiated
from `sigc::slot1<T_return, T_arg1>::slot1(const T_functor&) [with
T_functor = SigC::Slot0<void>, T_return = void, T_arg1 = const
Glib::ustring&]'
/usr/include/sigc++-2.0/sigc++/functors/slot.h:1157: instantiated
from `sigc::slot<T_return, T_arg1, sigc::nil, sigc::nil, sigc::nil,
sigc::nil, sigc::nil, sigc::nil>::slot(const T_functor&) [with
T_functor = SigC::Slot0<void>, T_return = void, T_arg1 = const
Glib::ustring&]'
/home/napoleone/workspace/Prototipo_DF/src/window1.cc:528:
instantiated from here
/usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:84: error: no
match for call to `(SigC::Slot0<void>) (const Glib::ustring&)'
/usr/include/sigc++-2.0/sigc++/functors/slot.h:438: note: candidates
are: T_return sigc::slot0<T_return>::operator()() const [with T_return
= void]
/usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:84: error:
return-statement with a value, in function returning 'void'
Bye
--
Ciao da
N poleone (ICQ# 266220356; MSN Messenger: napoleone1981 yahoo it)
"Le battaglie si vincono con gli uomini che si hanno, non con quelli che
si vorrebbero" (Napoleone Bonaparte)
"Le cose che possiedi prima o poi ti possiedono..." (Fight Club)
"Le donne possono avere bambini...gli uomini computers" (Anonimo)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]