Re: gtk_events_pending return value



On Tue, 2004-01-06 at 16:14, Johannes Wei▀l wrote:
> Hello,
> 
> On 2004-01-06 12:29:53, Owen Taylor wrote:
> > I'd say file a bug report, except that you really shouldn't be
> > using that function. Use g_main_pending() but don't write:
> > 
> >  while (g_main_pending ())
> >    g_main_iteration (FALSE);
> > 
> > Just write
> > 
> >   while (g_main_iteration (FALSE))
> >     /* Nothing */;
> 
> Hmm, but g_main_iteration is considered deprecated:
> "g_main_iteration is deprecated and should not be used in
> newly-written code. Use g_main_context_iteration() instead."
> 
> And g_main_context_iteration requires an additional GMainContext
> argument ...

Pass NULL to get the default main context.
						Owen





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