diff options
author | Cosimo Alfarano <cosimo.alfarano@collabora.co.uk> | 2010-02-19 19:12:49 +0000 |
---|---|---|
committer | Cosimo Alfarano <cosimo.alfarano@collabora.co.uk> | 2010-02-22 12:45:38 +0000 |
commit | d2f75b52298a95bc1831be724ae95f8aa73be7f2 (patch) | |
tree | 9cd1e95523342b0f098a9e755f0fce560efe97de | |
parent | 164d1d6ffb132932eeeaaa15dd9b2c925d266696 (diff) | |
download | telepathy-logger-d2f75b52298a95bc1831be724ae95f8aa73be7f2.tar.gz |
Using priv->readable_stores when using a search/query API
All LogStore API that access the LogStore in reading have to have the readable
property TRUE, so that at log manager's registration time, it will set the LS
at in priv->readable_stores properly, to avoid to query LS that actually are not meant to be.
-rw-r--r-- | telepathy-logger/log-manager.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/telepathy-logger/log-manager.c b/telepathy-logger/log-manager.c index b8bef1c..6b183fc 100644 --- a/telepathy-logger/log-manager.c +++ b/telepathy-logger/log-manager.c @@ -593,7 +593,7 @@ tpl_log_manager_get_chats (TplLogManager *manager, priv = GET_PRIV (manager); - for (l = priv->stores; l != NULL; l = g_list_next (l)) + for (l = priv->readable_stores; l != NULL; l = g_list_next (l)) { TplLogStore *store = TPL_LOG_STORE (l->data); GList *in; @@ -638,7 +638,7 @@ tpl_log_manager_search_in_identifier_chats_new (TplLogManager *manager, priv = GET_PRIV (manager); - for (l = priv->stores; l != NULL; l = g_list_next (l)) + for (l = priv->readable_stores; l != NULL; l = g_list_next (l)) { TplLogStore *store = TPL_LOG_STORE (l->data); @@ -663,7 +663,7 @@ tpl_log_manager_search_new (TplLogManager *manager, priv = GET_PRIV (manager); - for (l = priv->stores; l != NULL; l = g_list_next (l)) + for (l = priv->readable_stores; l != NULL; l = g_list_next (l)) { TplLogStore *store = TPL_LOG_STORE (l->data); |