[Gtk-sharp-list] how to block a signal
Fabian Sturm
f@rtfs.org
Thu, 10 Feb 2005 17:04:44 +0100
Hi!
Thanks for the reply. And yes I guess what you describe would
be a solution to my problem. Still it looks somewhat unclean.
What I want is to actually block a signal from being emitted not
unregistering all possible event handlers. E.g. it would create a race
condition between my modification of the Changed delegate and the
call which triggers a new event.
So I still would be great full if someone could enlighten me how the
GObject is mapped in gtk-sharp and where those
g_signal_handler_* are gone?
Thanks a lot, Fabian
On Thu, 2005-02-10 at 08:33 +0100, Томислав Марковски wrote:
> To register an event you use:
>
> eventenddate_entry.Changed += new ChangedEventHandler(my_func);
>
> To unregister (or as you reffer to it - "block") the event, you use:
>
> eventenddate_entry.Changed -= new ChangedEventHandler(my_func);