From 82a6a882d03c145625edbe23dade65bc14f85e73 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Sat, 5 Jun 2010 15:55:29 +0100 Subject: Assign names to our idle sources when using new versions of glib2 This makes it possible to profile more accurately using systemtap --- src/up-history.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/up-history.c') 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; } -- cgit v1.2.1