backends: Drop meta_idle_monitor_get_for_device()

As far as public API is concerned, there's only one idletime monitor
from now on.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/1039
This commit is contained in:
Carlos Garnacho 2020-02-05 16:51:00 +01:00 committed by Georges Basile Stavracas Neto
parent f7646af810
commit 1ecfdb1748
2 changed files with 1 additions and 20 deletions

View File

@ -270,8 +270,7 @@ meta_idle_monitor_init (MetaIdleMonitor *monitor)
* meta_idle_monitor_get_core: * meta_idle_monitor_get_core:
* *
* Returns: (transfer none): the #MetaIdleMonitor that tracks the server-global * Returns: (transfer none): the #MetaIdleMonitor that tracks the server-global
* idletime for all devices. To track device-specific idletime, * idletime for all devices.
* use meta_idle_monitor_get_for_device().
*/ */
MetaIdleMonitor * MetaIdleMonitor *
meta_idle_monitor_get_core (void) meta_idle_monitor_get_core (void)
@ -283,21 +282,6 @@ meta_idle_monitor_get_core (void)
return meta_backend_get_idle_monitor (backend, clutter_seat_get_pointer (seat)); return meta_backend_get_idle_monitor (backend, clutter_seat_get_pointer (seat));
} }
/**
* meta_idle_monitor_get_for_device:
* @device: the device to get the idle time for.
*
* Returns: (transfer none): a new #MetaIdleMonitor that tracks the
* device-specific idletime for @device. To track server-global idletime
* for all devices, use meta_idle_monitor_get_core().
*/
MetaIdleMonitor *
meta_idle_monitor_get_for_device (ClutterInputDevice *device)
{
MetaBackend *backend = meta_get_backend ();
return meta_backend_get_idle_monitor (backend, device);
}
static guint32 static guint32
get_next_watch_serial (void) get_next_watch_serial (void)
{ {

View File

@ -43,9 +43,6 @@ typedef void (*MetaIdleMonitorWatchFunc) (MetaIdleMonitor *monitor,
META_EXPORT META_EXPORT
MetaIdleMonitor *meta_idle_monitor_get_core (void); MetaIdleMonitor *meta_idle_monitor_get_core (void);
META_EXPORT
MetaIdleMonitor *meta_idle_monitor_get_for_device (ClutterInputDevice *device);
META_EXPORT META_EXPORT
guint meta_idle_monitor_add_idle_watch (MetaIdleMonitor *monitor, guint meta_idle_monitor_add_idle_watch (MetaIdleMonitor *monitor,
guint64 interval_msec, guint64 interval_msec,