GNOME Bugzilla – Bug 629096
Add a library init function
Last modified: 2010-09-20 23:03:15 UTC
While writing the folks-import tool, I've found that I can't stop the flow of debug messages, because log handling is initialised in the constructor for IndividualAggregator, but folks-import doesn't use an IndividualAggregator. I think we should add a library initialisation function, similar to gtk_init() and friends, which would take care of this. For the moment, I can only think of setting up the debug log handling, but there may be other code which can go in there in future.
Actually, this code can just move to the constructor of BackendStore now that we're making it a singleton.
(Mass changing milestones; please search for this phrase to delete the bug spam.)
Created attachment 170163 [details] [review] Move debug initialisation to BackendStore http://git.collabora.co.uk/?p=user/pwith/folks;a=shortlog;h=refs/heads/629096-debug-init This does just that, and is based on the bgo628970-expose-backends branch in bug #628970.
Review of attachment 170163 [details] [review]: Looks good.
Merged: commit 7debb14bfbb22b5865c1d60804c81777151e3640 Author: Philip Withnall <philip.withnall@collabora.co.uk> Date: Mon Sep 13 16:24:03 2010 +0100 Move debug initialisation to BackendStore Now that the BackendStore is a singleton, its initialiser will more reliably be called than the initialiser for IndividualAggregator (since clients can theoretically not use the IndividualAggregator, but have to use the BackendStore). Closes: bgo#629096 folks/backend-store.vala | 3 +++ folks/individual-aggregator.vala | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-)