summaryrefslogtreecommitdiff
path: root/src/up-wakeups.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-10-14 09:16:06 +0200
committerBastien Nocera <hadess@hadess.net>2013-10-14 11:06:53 +0200
commitac1708e86e0f87c25e5cf7e11a82324c5d002fba (patch)
treebe716d62b8eee8a6ae21597eb2f4015bea2941a0 /src/up-wakeups.c
parentd2484d4ec143348628f7129f21ad1fce23050b22 (diff)
downloadupower-ac1708e86e0f87c25e5cf7e11a82324c5d002fba.tar.gz
daemon: Require newer GLib
And remove ifdef's.
Diffstat (limited to 'src/up-wakeups.c')
-rw-r--r--src/up-wakeups.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/up-wakeups.c b/src/up-wakeups.c
index 6a883db..ee7368a 100644
--- a/src/up-wakeups.c
+++ b/src/up-wakeups.c
@@ -634,9 +634,7 @@ up_wakeups_timerstats_enable (UpWakeups *wakeups)
wakeups->priv->disable_id =
g_timeout_add_seconds (UP_WAKEUPS_DISABLE_INTERVAL,
(GSourceFunc) up_wakeups_disable_cb, wakeups);
-#if GLIB_CHECK_VERSION(2,25,8)
g_source_set_name_by_id (wakeups->priv->disable_id, "[UpWakeups] disable");
-#endif
/* already same state */
if (wakeups->priv->polling_enabled)
@@ -648,15 +646,12 @@ up_wakeups_timerstats_enable (UpWakeups *wakeups)
wakeups->priv->poll_kernel_id =
g_timeout_add_seconds (UP_WAKEUPS_POLL_INTERVAL_KERNEL,
(GSourceFunc) up_wakeups_poll_kernel_cb, wakeups);
-#if GLIB_CHECK_VERSION(2,25,8)
g_source_set_name_by_id (wakeups->priv->poll_kernel_id, "[UpWakeups] kernel");
-#endif
+
wakeups->priv->poll_userspace_id =
g_timeout_add_seconds (UP_WAKEUPS_POLL_INTERVAL_USERSPACE,
(GSourceFunc) up_wakeups_poll_userspace_cb, wakeups);
-#if GLIB_CHECK_VERSION(2,25,8)
g_source_set_name_by_id (wakeups->priv->poll_userspace_id, "[UpWakeups] userspace");
-#endif
file = fopen (UP_WAKEUPS_SOURCE_USERSPACE, "w");
if (file == NULL)