summaryrefslogtreecommitdiff
path: root/src/gpm-idle.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpm-idle.c')
-rw-r--r--src/gpm-idle.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gpm-idle.c b/src/gpm-idle.c
index 67dbeee..a593fe9 100644
--- a/src/gpm-idle.c
+++ b/src/gpm-idle.c
@@ -227,7 +227,9 @@ gpm_idle_evaluate (GpmIdle *idle)
if (idle->priv->timeout_blank_id == 0 &&
idle->priv->timeout_blank != 0) {
egg_debug ("setting up blank callback for %is", idle->priv->timeout_blank);
- idle->priv->timeout_blank_id = g_timeout_add_seconds (idle->priv->timeout_blank, (GSourceFunc) gpm_idle_blank_cb, idle);
+ idle->priv->timeout_blank_id = g_timeout_add_seconds (idle->priv->timeout_blank,
+ (GSourceFunc) gpm_idle_blank_cb, idle);
+ g_source_set_name_by_id (idle->priv->timeout_blank_id, "[GpmIdle] blank");
}
/* are we inhibited from sleeping */
@@ -242,7 +244,9 @@ gpm_idle_evaluate (GpmIdle *idle)
if (idle->priv->timeout_sleep_id == 0 &&
idle->priv->timeout_sleep != 0) {
egg_debug ("setting up sleep callback %is", idle->priv->timeout_sleep);
- idle->priv->timeout_sleep_id = g_timeout_add_seconds (idle->priv->timeout_sleep, (GSourceFunc) gpm_idle_sleep_cb, idle);
+ idle->priv->timeout_sleep_id = g_timeout_add_seconds (idle->priv->timeout_sleep,
+ (GSourceFunc) gpm_idle_sleep_cb, idle);
+ g_source_set_name_by_id (idle->priv->timeout_sleep_id, "[GpmIdle] sleep");
}
}
out: