Re: g_main_context_depth()
- From: Matthias Clasen <maclas gmx de>
- To: gtk-devel-list gnome org
- Subject: Re: g_main_context_depth()
- Date: Mon, 05 Jan 2004 23:13:56 +0100
Am Mo, den 05.01.2004 schrieb Owen Taylor um 22:40:
> Tim asked me for something like the following.
>
> int g_main_context_depth (GMainContext *context);
>
> Returns the depth of the stack of calls to
> g_main_context_dispatch() on @context 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_iterate(),
> it returns 2. And so forth.
Lets make a deal: Tim gets g_main_context_depth() if he looks at some of
the API bugs blocking on him :-)
Matthias
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]