Re: Signal Autoconnect in Libglademm



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

"Clyde Mallon" <Clyde firepro co za> writes:

> I notice that it seems to have no signal_autoconnect...is this
> correct?

Yes.

> I hope I'm just not looking properly! I am trying to convert a GTK+
> project which uses it...so I'm kinda stuck without it. Anyone know
> the answer here?

You need to do the connection "by hand" in your constructor, for
example.  It's not possible to connect to C++ object methods
automatically like you can with C functions.

There's a simple example of how to do this here:

  http://people.debian.org/~rleigh/gtk/ogcalc/

(I've recently updated this for Gtkmm 2.4.x.)


Regards,
Roger

- -- 
Roger Leigh
                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                Debian GNU/Linux        http://www.debian.org/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQFBtLsbVcFcaSW/uEgRAj63AJ98dahm0G37SHDN9H5MjJoPNsu89ACguS0M
NhAH4YBpzpFU61fzxsBGPi0=
=ssKw
-----END PGP SIGNATURE-----



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