Re: [gtkmm] binding arguments to slots



Replying to myself
Le Vendredi 14 Novembre 2003 18:19, gtkmm mailing list account a écrit 
:
> (I felt this list was more appropriate than libsigc-list gnome org
> because I think the latter is for a newer version of libsigC++ than
> the one I'm using with Gtkmm, please forgive & correct me if I'm
> wrong)
>
> I want to bind another argument to the signal between a
> CellRendererText and the TreeView ((to handle adapting the edited
> value to the model).
>
> I don't understand the error message I get :
>
>
> GrilleEval.cxx:68: error: no matching function for call to `bind(
>    SigC::Slot5<void, const Glib::ustring&, const Glib::ustring&,
>    Gtk::TreeModelColumn<Glib::ustring>*, Gtk::TreeView*,
>    <unnamed>::TestAdapt&>, Gtk::TreeModelColumn<Glib::ustring>*&,
>    Gtk::TreeView*, <unnamed>::TestAdapt&)'
>
> TestAdapt is my adaptor class.
> The signatures look OK to me.

It look like there is a stringent limitation on the number of arguents 
:-(
I could do what I wanted by bundeling some args into a tuple.

Is this limitation proeminently documented ?
Is there a way to expand it (recompiling libsigc++1.2 ) ?

Bernard



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