From 4cc0d9c233886a419ede7c9791b9ce7252e2dcdb Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 11 Oct 2013 22:41:09 +0100 Subject: [PATCH] LOG init/fini messages. --- desktop/treeview.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/desktop/treeview.c b/desktop/treeview.c index e42683826..d9e1f9ec6 100644 --- a/desktop/treeview.c +++ b/desktop/treeview.c @@ -3828,6 +3828,8 @@ nserror treeview_init(int font_pt_size) if (tree_g.initialised == true) return NSERROR_OK; + LOG(("Initialising treeview module")); + if (font_pt_size <= 0) font_pt_size = 11; @@ -3846,9 +3848,10 @@ nserror treeview_init(int font_pt_size) tree_g.icon_step = 23; tree_g.move_offset = 18; - tree_g.initialised = true; + LOG(("Initialised treeview module")); + return NSERROR_OK; } @@ -3858,6 +3861,8 @@ nserror treeview_fini(void) { int i; + LOG(("Finalising treeview module")); + for (i = 0; i < TREE_RES_LAST; i++) { hlcache_handle_release(treeview_res[i].c); } @@ -3873,5 +3878,7 @@ nserror treeview_fini(void) tree_g.initialised = false; + LOG(("Finalised treeview module")); + return NSERROR_OK; }