Mtk.timeout_add_seconds
Description: Reference for Mtk.timeout_add_seconds

### Function

# Mtktimeout_add_seconds

#### Declaration [src]

    guint
    mtk_timeout_add_seconds (
      unsigned int interval,
      GSourceFunc function,
      gpointer data
    )

#### Description [src]

Sets a function to be called at regular intervals with the default priority, `G_PRIORITY_DEFAULT`.

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

The implementation of this function is provided by `mtk_timeout_add_seconds_full()` in language bindings.

#### Parameters

`interval`

  Type: `unsigned int`

  The time between calls to the function, in seconds.

`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.

#### Return value

Type: `guint`

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