[gnome-builder/wip/libide] libide: log load and save file for back-forward-list
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide] libide: log load and save file for back-forward-list
- Date: Fri, 13 Mar 2015 05:54:42 +0000 (UTC)
commit 85077ede1bcbd7395f7241f2da2ef374330911a5
Author: Christian Hergert <christian hergert me>
Date: Thu Mar 12 22:54:09 2015 -0700
libide: log load and save file for back-forward-list
libide/ide-back-forward-list.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-back-forward-list.c b/libide/ide-back-forward-list.c
index 6295487..e9317c1 100644
--- a/libide/ide-back-forward-list.c
+++ b/libide/ide-back-forward-list.c
@@ -573,6 +573,15 @@ _ide_back_forward_list_save_async (IdeBackForwardList *self,
g_assert (G_IS_FILE (file));
g_assert (!cancellable || G_IS_CANCELLABLE (cancellable));
+#ifndef IDE_DISABLE_TRACE
+ {
+ g_autofree gchar *path = NULL;
+
+ path = g_file_get_path (file);
+ IDE_TRACE_MSG ("Saving %s", path);
+ }
+#endif
+
task = g_task_new (self, cancellable, callback, user_data);
/* generate the file content */
@@ -731,6 +740,15 @@ _ide_back_forward_list_load_async (IdeBackForwardList *self,
g_assert (G_IS_FILE (file));
g_assert (!cancellable || G_IS_CANCELLABLE (cancellable));
+#ifndef IDE_DISABLE_TRACE
+ {
+ g_autofree gchar *path = NULL;
+
+ path = g_file_get_path (file);
+ IDE_TRACE_MSG ("Loading %s", path);
+ }
+#endif
+
task = g_task_new (self, cancellable, callback, user_data);
g_file_load_contents_async (file,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]