Re: [gtkmm] binding arguments to slots
- From: Martin Schulze <martin-ml hippogriff de>
- To: gtkmm mailing list account <gtkmm-list bernard-hugueney org>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] binding arguments to slots
- Date: Mon, 17 Nov 2003 19:41:51 +0100
Am 2003.11.17 15:23 schrieb(en) gtkmm mailing list account:
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
:-(
The limitation will be lifted in libsigc++-2.0.
I could do what I wanted by bundeling some args into a tuple.
Is this limitation proeminently documented ?
Have to look up.
Is there a way to expand it (recompiling libsigc++1.2 ) ?
Yes. You have to edit sigc++/macros/bind.h.m4. The last "paragraph"
of the file is of interest. Add ADAPTOR_BIND_DATA(ARGS(C,3)), etc.;
maybe also some ADAPTOR_BIND_SLOT(...) commands are needed.
Cheers!
Martin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]