Re: [Vala] Check if event-handler is registered already

2014-07-18 Thread Gilzad Hamuni
. } It's safe to start off by checking a handler ID whose value is 0, because SignalHandler.is_connected() will return false then. Best, gilzad Gesendet: Dienstag, 15. Juli 2014 um 15:07 Uhr Von: Gilzad Hamuni gil...@gmx.net An: vala-list@gnome.org Betreff: [Vala] Check if event-handler

[Vala] Check if event-handler is registered already

2014-07-15 Thread Gilzad Hamuni
Hi all, suppose I have a class that can take callbacks to invoke them in case of any event: public signal void DataReceived(uint8 byte); //... DataReceived(byte); ...and I have a client that registers its handler to it: someInstance.DataReceived.connect(OnDataReceived); //... private void