[gnome-builder/wip/libide-merge] add tracing to jumps
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide-merge] add tracing to jumps
- Date: Sat, 21 Mar 2015 07:20:01 +0000 (UTC)
commit 45fac0a2726b87ce331b96b5ac25c480b691f0e1
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]