Re: main-loop foo

On Mon, 2003-11-10 at 22:21, Michael Meeks wrote:
> Hi Malcolm,
> On Tue, 2003-11-04 at 23:34, Malcolm Tredinnick wrote:
> > Is there a way to detect if my code is running as a result of
> > bonobo_main() having been called. I am thinking about an equivalent of
> > gtk_main_level() in GTK+.
> 	AFAIK no.
> > Looking at the code, bonobo_main() uses the g_main_loop_* functions and
> > does not expose the GMainLoop structure (not unreasonable) or depth
> > count (possibly less reasonable) at all. So I am guessing the answer is
> > "no", but maybe I am overlooking something.
> 	Should we add one; if so - do commit that to HEAD.

OK, I committed bonobo_main_level() which returns the number of
currently running main loops. It has a test and everything.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]