From 20bc4d23ccbc44b53d914dc8b9aaf11a9b102e3c Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 8 Jan 2014 12:04:18 +0100 Subject: [PATCH 04/12] log-manager: use store constructor helpers --- telepathy-logger/log-manager.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/telepathy-logger/log-manager.c b/telepathy-logger/log-manager.c index 95ebeb7..3b89ad5 100644 --- a/telepathy-logger/log-manager.c +++ b/telepathy-logger/log-manager.c @@ -276,23 +276,15 @@ tpl_log_manager_init (TplLogManager *self) G_CALLBACK (_globally_enabled_changed), NULL); /* The TPL's default read-write logstore */ - add_log_store (self, - g_object_new (TPL_TYPE_LOG_STORE_XML, - NULL)); + add_log_store (self, _tpl_log_store_xml_new ()); /* Load by default the Empathy's legacy 'past coversations' LogStore */ - add_log_store (self, - g_object_new (TPL_TYPE_LOG_STORE_EMPATHY, - NULL)); + add_log_store (self, _tpl_log_store_empathy_new ()); - add_log_store (self, - g_object_new (TPL_TYPE_LOG_STORE_PIDGIN, - NULL)); + add_log_store (self, _tpl_log_store_pidgin_new ()); /* Load the event counting cache */ - add_log_store (self, - g_object_new (TPL_TYPE_LOG_STORE_SQLITE, - NULL)); + add_log_store (self, _tpl_log_store_sqlite_dup ()); DEBUG ("Log Manager initialised"); } -- 1.8.4.2