Method

GLibMainContextprepare

Declaration [src]

gboolean
g_main_context_prepare (
  GMainContext* context,
  gint* priority
)

Description [src]

Prepares to poll sources within a main loop. The resulting information for polling is determined by calling g_main_context_query().

You must have successfully acquired the context with g_main_context_acquire() before you may call this function.

Parameters

priority

Type: gint*

Location to store priority of highest priority source already ready.

The argument will be set by the function.
The argument can be NULL.

Return value

Type: gboolean

TRUE if some source is ready to be dispatched prior to polling.