[gnome-builder] source-snippet: add more tracing



commit 60ffd2a8c2aecced8ee3897ce8524a929e044a3b
Author: Christian Hergert <chergert redhat com>
Date:   Wed Nov 9 20:00:09 2016 -0800

    source-snippet: add more tracing

 libide/snippets/ide-source-snippet.c |   20 ++++++++++++++------
 1 files changed, 14 insertions(+), 6 deletions(-)
---
diff --git a/libide/snippets/ide-source-snippet.c b/libide/snippets/ide-source-snippet.c
index f3ba78f..3e94ac9 100644
--- a/libide/snippets/ide-source-snippet.c
+++ b/libide/snippets/ide-source-snippet.c
@@ -397,10 +397,12 @@ ide_source_snippet_move_next (IdeSourceSnippet *self)
   GtkTextIter iter;
   gint i;
 
+  IDE_ENTRY;
+
   g_return_val_if_fail (IDE_IS_SOURCE_SNIPPET (self), FALSE);
 
   if (self->tab_stop > self->max_tab_stop)
-    return FALSE;
+    IDE_RETURN (FALSE);
 
   self->tab_stop++;
 
@@ -410,7 +412,7 @@ ide_source_snippet_move_next (IdeSourceSnippet *self)
       if (ide_source_snippet_chunk_get_tab_stop (chunk) == self->tab_stop)
         {
           ide_source_snippet_select_chunk (self, i);
-          return TRUE;
+          IDE_RETURN (TRUE);
         }
     }
 
@@ -420,7 +422,7 @@ ide_source_snippet_move_next (IdeSourceSnippet *self)
       if (!ide_source_snippet_chunk_get_tab_stop (chunk))
         {
           ide_source_snippet_select_chunk (self, i);
-          return FALSE;
+          IDE_RETURN (FALSE);
         }
     }
 
@@ -428,7 +430,7 @@ ide_source_snippet_move_next (IdeSourceSnippet *self)
   gtk_text_buffer_select_range (self->buffer, &iter, &iter);
   self->current_chunk = self->chunks->len - 1;
 
-  return FALSE;
+  IDE_RETURN (FALSE);
 }
 
 gboolean
@@ -437,6 +439,8 @@ ide_source_snippet_move_previous (IdeSourceSnippet *self)
   IdeSourceSnippetChunk *chunk = NULL;
   gint i;
 
+  IDE_ENTRY;
+
   g_return_val_if_fail (IDE_IS_SOURCE_SNIPPET (self), FALSE);
 
   self->tab_stop = MAX (1, self->tab_stop - 1);
@@ -447,11 +451,11 @@ ide_source_snippet_move_previous (IdeSourceSnippet *self)
       if (ide_source_snippet_chunk_get_tab_stop (chunk) == self->tab_stop)
         {
           ide_source_snippet_select_chunk (self, i);
-          return TRUE;
+          IDE_RETURN (TRUE);
         }
     }
 
-  return FALSE;
+  IDE_RETURN (FALSE);
 }
 
 static void
@@ -459,6 +463,8 @@ ide_source_snippet_update_context (IdeSourceSnippet *self)
 {
   IdeSourceSnippetContext *context;
 
+  IDE_ENTRY;
+
   g_return_if_fail (IDE_IS_SOURCE_SNIPPET (self));
 
   context = ide_source_snippet_get_context (self);
@@ -490,6 +496,8 @@ ide_source_snippet_update_context (IdeSourceSnippet *self)
     }
 
   ide_source_snippet_context_emit_changed (context);
+
+  IDE_EXIT;
 }
 
 static void


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