[gnome-builder] app: add tracing



commit 69d62d78cd10ef021001b88235462cb6b3b31ebe
Author: Christian Hergert <christian hergert me>
Date:   Fri Apr 24 12:03:01 2015 -0700

    app: add tracing

 src/app/gb-application.c |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)
---
diff --git a/src/app/gb-application.c b/src/app/gb-application.c
index 6bc5bf5..abce31f 100644
--- a/src/app/gb-application.c
+++ b/src/app/gb-application.c
@@ -212,11 +212,20 @@ on_create_buffer (IdeBufferManager *buffer_manager,
                   IdeFile          *file,
                   gpointer          user_data)
 {
-  return g_object_new (GB_TYPE_EDITOR_DOCUMENT,
-                       "context", ide_object_get_context (IDE_OBJECT (buffer_manager)),
-                       "file", file,
-                       "highlight-diagnostics", TRUE,
-                       NULL);
+  IdeBuffer *ret;
+
+  IDE_ENTRY;
+
+  g_assert (IDE_IS_BUFFER_MANAGER (buffer_manager));
+  g_assert (IDE_IS_FILE (file));
+
+  ret = g_object_new (GB_TYPE_EDITOR_DOCUMENT,
+                      "context", ide_object_get_context (IDE_OBJECT (buffer_manager)),
+                      "file", file,
+                      "highlight-diagnostics", TRUE,
+                      NULL);
+
+  IDE_RETURN (ret);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]