MainLoop.mainDepth

Returns the depth of the stack of calls to g_main_context_dispatch() on any GMainContext in the current thread. That is, when called from the toplevel, it gives 0. When called from within a callback from g_main_context_iteration() (or g_main_loop_run(), etc.) it returns 1. When called from within a callback to a recursive call to g_main_context_iteration(), it returns 2. And so forth.

class MainLoop
static
int
mainDepth
()

Return Value

Type: int

The main loop recursion level in the current thread

Meta