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-main.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-main.c')
-rw-r--r-- | src/up-main.c | 6 |
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); |