From 0d380b7e10b84740a54ec108df61fc4c62b43e0f Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Fri, 28 Feb 2014 21:22:32 +0100 Subject: core: Add names to all the timeouts and idles For debugging purposes. https://bugzilla.gnome.org/show_bug.cgi?id=725419 --- libs/net/grl-net-wc.c | 1 + libs/pls/grl-pls.c | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'libs') diff --git a/libs/net/grl-net-wc.c b/libs/net/grl-net-wc.c index 3fcc08c..6ac78c8 100644 --- a/libs/net/grl-net-wc.c +++ b/libs/net/grl-net-wc.c @@ -790,6 +790,7 @@ get_url (GrlNetWc *self, priv->last_request.tv_sec - now.tv_sec, get_url_cb, c, request_clos_destroy); } + g_source_set_name_by_id (id, "[grl-net] get_url_cb"); c->source_id = id; g_queue_push_head (self->priv->pending, c); diff --git a/libs/pls/grl-pls.c b/libs/pls/grl-pls.c index c89585b..a04f14f 100644 --- a/libs/pls/grl-pls.c +++ b/libs/pls/grl-pls.c @@ -833,8 +833,11 @@ grl_pls_browse_by_spec (GrlSource *source, /* check if we have the entries cached or not */ valid_entries = g_object_get_data (G_OBJECT (bs->container), GRL_DATA_PRIV_PLS_VALID_ENTRIES); if (valid_entries) { + guint id; + GRL_DEBUG ("%s : using cached data bs=%p", __FUNCTION__, bs); - g_idle_add ((GSourceFunc) grl_pls_browse_report_results, bs); + id = g_idle_add ((GSourceFunc) grl_pls_browse_report_results, bs); + g_source_set_name_by_id (id, "[grl-pls] grl_pls_browse_report_results"); return; } -- cgit v1.2.1