summaryrefslogtreecommitdiff
path: root/src/up-main.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-10-26 14:52:59 +0200
committerBastien Nocera <hadess@hadess.net>2013-10-26 14:55:15 +0200
commit6e8e659ca282dec0201a8773cd65153debea9e66 (patch)
tree876c55696e0bb678ee28931b59b4a41f4ef1f62f /src/up-main.c
parent4d0af3b31bda9270037dc18a503305fea1c5710e (diff)
downloadupower-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-main.c')
-rw-r--r--src/up-main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/up-main.c b/src/up-main.c
index de6dc12..c27cfb4 100644
--- a/src/up-main.c
+++ b/src/up-main.c
@@ -267,12 +267,14 @@ main (gint argc, gchar **argv)
/* only timeout and close the mainloop if we have specified it on the command line */
if (timed_exit) {
timer_id = g_timeout_add_seconds (30, (GSourceFunc) up_main_timed_exit_cb, loop);
- g_source_set_name_by_id (timer_id, "[UpMain] idle");
+ g_source_set_name_by_id (timer_id, "[upower] up_main_timed_exit_cb");
}
/* immediatly exit */
- if (immediate_exit)
+ if (immediate_exit) {
g_timeout_add (50, (GSourceFunc) up_main_timed_exit_cb, loop);
+ g_source_set_name_by_id (timer_id, "[upower] up_main_timed_exit_cb");
+ }
/* wait for input or timeout */
g_main_loop_run (loop);