Re: explicit signal connection vs. overriding function



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]