Gtk.Application.EventsPending Method
Whether there are events on the queue

Syntax

public static bool EventsPending ()

Returns

true if events are available to be processed, false otherwise

Remarks

Checks if any events are pending. This can be used to update the GUI and invoke timeouts etc. while doing some time intensive computation.

C# Example

void LongComputation ()
{
	while (!done){
	    ComputationChunk ();

    	// Flush pending events to keep the GUI reponsive
    	while (Application.EventsPending ())
		    Application.RunIteration ();
	}
}
	    

Requirements

Namespace: Gtk
Assembly: gtk-sharp (in gtk-sharp.dll)