[Gtk-sharp-list] how to block a signal

Fabian Sturm f@rtfs.org
Thu, 10 Feb 2005 01:56:12 +0100


Hi!

I have trouble finding the equivalent for g_signal_handler_block in
gtk-sharp. How would I do this in c#?

The problem why I need is that e.g for a text entry widget I have  
a on_eventenddate_entry_changed signal handler.
In the event handler I now verify if the entered date is correct and if
not I want to set the Text field to a corrected value.
But this unfortunately seems to emit another new signal and my
application finally crashes. 

So I guess the sequence should be something like

verify data 
if wrong 
 block signals
 update Text
 unblock signals

How would I do this in c#?

thanks a lot, Fabian