Re: gtk_events_pending return value

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

 



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


_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux