diff options
author | Bastien Nocera <hadess@hadess.net> | 2014-02-28 21:22:32 +0100 |
---|---|---|
committer | Juan A. Suarez Romero <jasuarez@igalia.com> | 2014-03-02 22:00:22 +0000 |
commit | 0d380b7e10b84740a54ec108df61fc4c62b43e0f (patch) | |
tree | 8a9ea74c2fb11d3200eb08f8c5651062786c7ce2 /libs | |
parent | 5520b4e219d9a9e1dd66aefcd27b2bda2d040a8e (diff) | |
download | grilo-0d380b7e10b84740a54ec108df61fc4c62b43e0f.tar.gz |
core: Add names to all the timeouts and idles
For debugging purposes.
https://bugzilla.gnome.org/show_bug.cgi?id=725419
Diffstat (limited to 'libs')
-rw-r--r-- | libs/net/grl-net-wc.c | 1 | ||||
-rw-r--r-- | libs/pls/grl-pls.c | 5 |
2 files changed, 5 insertions, 1 deletions
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; } |