summaryrefslogtreecommitdiff
path: root/src/up-history.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2010-06-05 15:55:29 +0100
committerRichard Hughes <richard@hughsie.com>2010-06-05 15:55:29 +0100
commit82a6a882d03c145625edbe23dade65bc14f85e73 (patch)
treeaa4585bd7d72bb45bc83528933ff8e624c5877f0 /src/up-history.c
parent2aba7d4cfbad7f04934be455317ddfd64689e3c1 (diff)
downloadupower-82a6a882d03c145625edbe23dade65bc14f85e73.tar.gz
Assign names to our idle sources when using new versions of glib2
This makes it possible to profile more accurately using systemtap
Diffstat (limited to 'src/up-history.c')
-rw-r--r--src/up-history.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/up-history.c b/src/up-history.c
index 48497e1..762495d 100644
--- a/src/up-history.c
+++ b/src/up-history.c
@@ -601,7 +601,9 @@ up_history_schedule_save (UpHistory *history)
egg_debug ("saving in %i seconds", UP_HISTORY_SAVE_INTERVAL);
history->priv->save_id = g_timeout_add_seconds (UP_HISTORY_SAVE_INTERVAL,
(GSourceFunc) up_history_schedule_save_cb, history);
-
+#if GLIB_CHECK_VERSION(2,25,8)
+ g_source_set_name_by_id (history->priv->save_id, "[UpHistory] save");
+#endif
return TRUE;
}