diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-10-26 14:52:59 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-10-26 14:55:15 +0200 |
commit | 6e8e659ca282dec0201a8773cd65153debea9e66 (patch) | |
tree | 876c55696e0bb678ee28931b59b4a41f4ef1f62f /src/up-daemon.c | |
parent | 4d0af3b31bda9270037dc18a503305fea1c5710e (diff) | |
download | upower-6e8e659ca282dec0201a8773cd65153debea9e66.tar.gz |
daemon: Better timeout source naming
Matching the work done in glib, gtk+, etc.
This also differentiates the unknown and normal timeouts in
the Linux power supply driver.
Diffstat (limited to 'src/up-daemon.c')
-rw-r--r-- | src/up-daemon.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/up-daemon.c b/src/up-daemon.c index f0a9451..3a81813 100644 --- a/src/up-daemon.c +++ b/src/up-daemon.c @@ -770,6 +770,7 @@ up_daemon_set_warning_level (UpDaemon *daemon, UpDeviceLevel warning_level) daemon->priv->action_timeout_id = g_timeout_add_seconds (UP_DAEMON_ACTION_DELAY, (GSourceFunc) take_action_timeout_cb, daemon); + g_source_set_name_by_id (daemon->priv->action_timeout_id, "[upower] take_action_timeout_cb"); } else { g_debug ("Not taking action, timeout id already set"); } |