gtk-sharp Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details. System.Delegate System.Void Event sender. Event arguments. Event handler. The event utilizes this delegate: Event data is passed via the parameter. To attach a to an event, add the RetrieveSurroundingHandler instance to the event. The methods referenced by the RetrieveSurroundingHandler instance are invoked whenever the event is raised, until the RetrieveSurroundingHandler is removed from the event. Handlers of this class should set the input method surrounding context by calling . The method returns %TRUE if the signal was handled by the callback.