[gtkmm] RE: tutorial appendix B on signals misleading
- From: Murray Cumming Comneon com
- To: Nathan Hurst infotech monash edu au, Murray Cumming Comneon com
- Cc: gtkmm-list gnome org
- Subject: [gtkmm] RE: tutorial appendix B on signals misleading
- Date: Thu, 15 Jan 2004 12:04:55 +0100
Yes. Thanks for noticing that. Feel free to submit a patch. It should
explain it and also explain that Gtk widgets do this automatically.
Murray Cumming
www.murrayc.com
murrayc usa net
> -----Original Message-----
> From: Nathan Hurst [mailto:Nathan Hurst infotech monash edu au]
> Sent: Donnerstag, 15. Januar 2004 04:07
> To: Murray Cumming Comneon com
> Cc: gtkmm-list gnome org
> Subject: tutorial appendix B on signals misleading
>
>
> In the Appendix B of the tutorial there is this example:
>
> void on_button_clicked();
>
> class some_class
> {
> void on_button_clicked();
> };
>
> some_class some_object;
>
> main()
> {
> Gtk::Button button;
> button.signal_clicked().connect( SigC::slot(&on_button_clicked) );
> button.signal_clicked().connect( SigC::slot(some_object,
> &some_class::on_button_clicked) ); }
>
> After much frustration I finally found out that some_class
> needs to be
> derived from SigC::Object. Could something to this effect be
> added please?
>
> njh
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]