Mtk.timeout_add_full
Description: Reference for Mtk.timeout_add_full

### Function

# Mtktimeout_add_full

#### Declaration [src]

    guint
    mtk_timeout_add_full (
      int priority,
      unsigned int interval,
      GSourceFunc function,
      gpointer data,
      GDestroyNotify notify
    )

#### Description [src]

Sets a function to be called at regular intervals, with the given priority.

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

This function is renamed to `mtk_timeout_add()` in language bindings.

#### Parameters

`priority`

  Type: `int`

  The priority of the timeout source; typically this will be in the range between `G_PRIORITY_DEFAULT` and `G_PRIORITY_HIGH`.

`interval`

  Type: `unsigned int`

  The time between calls to the function, in milliseconds.

`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 timeout is removed.

  The argument can be `NULL`.

#### Return value

Type: `guint`

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