How to tell which signal called a slot

Hello ROOTers,

If I have multiple signals of a control specifying the same slot function, is there any way to tell which signal called the slot?

For example, if two signal/slot connections are made for a TGNumberEntry, both specifying the same routine:

pNE1->Connect("ValueSet(Long_t)", "MyMainFrame", this, "CommonValueRoutine()");
pNE1->Connect("ValueChanged(Long_t)", "MyMainFrame", this, "CommonValueRoutine()");

How can the CommonValueRoutine() tell which signal called it at run time?

thanks very much

Hi buddy,

I don’t think there is a way to get this information, but I will double check.

Cheers, Bertrand

Ok, thanks Bertrand.