Re: explicit signal connection vs. overriding function
- From: José Alburquerque <jaalburquerque cox net>
- To: Piscium <groknok yahoo ie>
- Cc: gtkmm-list gnome org
- Subject: Re: explicit signal connection vs. overriding function
- Date: Mon, 10 May 2010 16:30:55 -0400
On Mon, 2010-05-10 at 19:57 +0000, Piscium wrote:
> This begs the question: are the two methods of handling signals equivalent? Is it always possible to choose either of them?
>
Yes, there are two methods. Classes that are derived from Glib::Object
that have signals such as signal_signalname() (which can be connected
to) also have virtual methods such as on_signalname(). If that class is
overridden, overriding the on_signalname() is another way of handling
the signal.
--
José
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]