diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-10-14 09:16:06 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-10-14 11:06:53 +0200 |
commit | ac1708e86e0f87c25e5cf7e11a82324c5d002fba (patch) | |
tree | be716d62b8eee8a6ae21597eb2f4015bea2941a0 /src/up-wakeups.c | |
parent | d2484d4ec143348628f7129f21ad1fce23050b22 (diff) | |
download | upower-ac1708e86e0f87c25e5cf7e11a82324c5d002fba.tar.gz |
daemon: Require newer GLib
And remove ifdef's.
Diffstat (limited to 'src/up-wakeups.c')
-rw-r--r-- | src/up-wakeups.c | 7 |
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) |