[gnome-desktop] idle: add compat api
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop] idle: add compat api
- Date: Thu, 14 Feb 2013 19:19:32 +0000 (UTC)
commit 3e10f7c15722684f67c943b230ce763bbbf28843
Author: Ray Strode <rstrode redhat com>
Date: Thu Feb 14 14:08:05 2013 -0500
idle: add compat api
This commit is just temporary until g-s-d is updated.
https://bugzilla.gnome.org/show_bug.cgi?id=688227
libgnome-desktop/gnome-idle-monitor.c | 14 ++++++++++++++
libgnome-desktop/gnome-idle-monitor.h | 5 +++++
2 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/libgnome-desktop/gnome-idle-monitor.c b/libgnome-desktop/gnome-idle-monitor.c
index 761ffa9..ca1ccb4 100644
--- a/libgnome-desktop/gnome-idle-monitor.c
+++ b/libgnome-desktop/gnome-idle-monitor.c
@@ -417,6 +417,20 @@ gnome_idle_monitor_new_for_device (GdkDevice *device)
"device", device, NULL));
}
+
+/*
+ * Temporary compat function to keep things building until g-s-d is updated
+ */
+guint
+gnome_idle_monitor_add_watch (GnomeIdleMonitor *monitor,
+ guint64 interval_msec,
+ GnomeIdleMonitorWatchFunc callback,
+ gpointer user_data,
+ GDestroyNotify notify)
+{
+ return gnome_idle_monitor_add_idle_watch (monitor, interval_msec, callback, user_data, notify);
+}
+
/**
* gnome_idle_monitor_add_idle_watch:
* @monitor: A #GnomeIdleMonitor
diff --git a/libgnome-desktop/gnome-idle-monitor.h b/libgnome-desktop/gnome-idle-monitor.h
index 523a62f..3e553c0 100644
--- a/libgnome-desktop/gnome-idle-monitor.h
+++ b/libgnome-desktop/gnome-idle-monitor.h
@@ -64,6 +64,11 @@ GType gnome_idle_monitor_get_type (void);
GnomeIdleMonitor * gnome_idle_monitor_new (void);
GnomeIdleMonitor * gnome_idle_monitor_new_for_device (GdkDevice *device);
+guint gnome_idle_monitor_add_watch (GnomeIdleMonitor *monitor,
+ guint64 interval_msec,
+ GnomeIdleMonitorWatchFunc callback,
+ gpointer user_data,
+ GDestroyNotify notify);
guint gnome_idle_monitor_add_idle_watch (GnomeIdleMonitor *monitor,
guint64 interval_msec,
GnomeIdleMonitorWatchFunc callback,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]