[gnome-builder] add tracing to jumps



commit c1bf9f1d83d054e9a45d97555796fac3f2019828
Author: Christian Hergert <christian hergert me>
Date:   Sat Mar 21 00:19:39 2015 -0700

    add tracing to jumps

 libide/ide-source-view.c |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)
---
diff --git a/libide/ide-source-view.c b/libide/ide-source-view.c
index 32e5f50..2fce0e6 100644
--- a/libide/ide-source-view.c
+++ b/libide/ide-source-view.c
@@ -2743,22 +2743,24 @@ ide_source_view_real_jump (IdeSourceView     *self,
   guint line_offset;
   guint offset;
 
+  IDE_ENTRY;
+
   g_assert (IDE_IS_SOURCE_VIEW (self));
   g_assert (location);
 
-  if (!priv->back_forward_list)
-    return;
+  if (priv->back_forward_list == NULL)
+    IDE_EXIT;
 
-  if (!priv->buffer)
-    return;
+  if (priv->buffer == NULL)
+    IDE_EXIT;
 
   context = ide_buffer_get_context (priv->buffer);
-  if (!context)
-    return;
+  if (context == NULL)
+    IDE_EXIT;
 
   file = ide_buffer_get_file (priv->buffer);
-  if (!file)
-    return;
+  if (file == NULL)
+    IDE_EXIT;
 
   line = gtk_text_iter_get_line (location);
   line_offset = gtk_text_iter_get_line_offset (location);
@@ -2768,6 +2770,8 @@ ide_source_view_real_jump (IdeSourceView     *self,
   item = ide_back_forward_item_new (context, srcloc);
 
   ide_back_forward_list_push (priv->back_forward_list, item);
+
+  IDE_EXIT;
 }
 
 static void


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