Method

MetaIdleMonitoradd_user_active_watch

Declaration [src]

guint
meta_idle_monitor_add_user_active_watch (
  MetaIdleMonitor* monitor,
  MetaIdleMonitorWatchFunc callback,
  gpointer user_data,
  GDestroyNotify notify
)

Description

No description available.

Parameters

callback MetaIdleMonitorWatchFunc
 

The callback to call when the user is active again.

user_data gpointer
 

The user data to pass to the callback.

notify GDestroyNotify
 

A GDestroyNotify.

Return value

Returns: guint
 

A watch id

Add a one-time watch to know when the user is active again. Note that this watch is one-time and will de-activate after the function is called, for efficiency purposes. It’s most convenient to call this when an idle watch, as added by meta_idle_monitor_add_idle_watch(), has triggered.