Function

Gdk-3.0Gdkthreads_add_timeout_secondsSince 2.14

  • A variant of gdk_threads_add_timeout_full() with second-granularity. See g_timeout_add_seconds_full() for a discussion of why it is a good idea to use this function if you don’t need finer granularity.

    Parameters

    • priority: number

      the priority of the timeout source. Typically this will be in the range between #G_PRIORITY_DEFAULT_IDLE and #G_PRIORITY_HIGH_IDLE.

    • interval: number

      the time between calls to the function, in seconds

    • _function: SourceFunc

      function to call

    • Optionalnotify: DestroyNotify

      function to call when the timeout is removed, or null

    Returns number

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

    2.14