Function

Mtkidle_add_full

Declaration [src]

guint
mtk_idle_add_full (
  int priority,
  GSourceFunc function,
  gpointer data,
  GDestroyNotify notify
)

Description [src]

Adds a function to be called whenever there are no higher priority events pending.

This method is similar to g_idle_add_full() except it will attach the source to the thread-default main context.

This function is renamed to mtk_idle_add() in language bindings.

Parameters

priority

Type: int

The priority of the idle source; typically this will be in the range between G_PRIORITY_DEFAULT_IDLE and G_PRIORITY_HIGH_IDLE.

function

Type: GSourceFunc

Function to call.

data

Type: gpointer

Data to pass to function.

The argument can be NULL.
The data is owned by the caller of the function.
notify

Type: GDestroyNotify

Function to call when the idle is removed.

The argument can be NULL.

Return value

Type: guint

The ID (greater than 0) of the event source.