Sets our main struct and passes it to the parent class.
Creates a new glib.MainLoop structure.
A destructor is present on this object, but not explicitly documented in the source.
Returns the glib.MainContext of loop.
Get the main Gtk struct
the main Gtk struct as a void*
Checks to see if the main loop is currently being run via MainLoop.run.
Stops a glib.MainLoop from running. Any calls to MainLoop.run for the loop will return.
Increases the reference count on a glib.MainLoop object by one.
Runs a main loop until MainLoop.quit is called on the loop. If this is called for the thread of the loop's glib.MainContext, it will process events from the loop, otherwise it will simply wait.
Decreases the reference count on a glib.MainLoop object by one. If the result is zero, free the loop and free all associated memory.
Returns the currently firing source for this thread.
Returns the depth of the stack of calls to MainContext.dispatch on any glib.MainContext in the current thread. That is, when called from the toplevel, it gives 0. When called from within a callback from MainContext.iteration (or MainLoop.run, etc.) it returns 1. When called from within a callback to a recursive call to MainContext.iteration, it returns 2. And so forth.
Polls fds, as with the poll() system call, but portably. (On systems that don't have poll(), it is emulated using select().) This is used internally by glib.MainContext, but it can be called directly if you need to block until a file descriptor is ready, but don't want to run the full main loop.
the main Gtk struct
The GMainLoop struct is an opaque data type representing the main event loop of a GLib or GTK+ application.