[gnome-builder] tracing: add more detailed tracing to ide_buffer_delete_range()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] tracing: add more detailed tracing to ide_buffer_delete_range()
- Date: Sun, 13 Sep 2015 00:09:26 +0000 (UTC)
commit 9b879c056b5c00fa0b0c19605e28705b771ae53a
Author: Christian Hergert <christian hergert me>
Date: Sat Sep 12 16:54:01 2015 -0700
tracing: add more detailed tracing to ide_buffer_delete_range()
libide/ide-buffer.c | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-buffer.c b/libide/ide-buffer.c
index b69475b..c72c6eb 100644
--- a/libide/ide-buffer.c
+++ b/libide/ide-buffer.c
@@ -658,8 +658,29 @@ ide_buffer_delete_range (GtkTextBuffer *buffer,
GtkTextIter *start,
GtkTextIter *end)
{
+ IDE_ENTRY;
+
+#ifdef IDE_ENABLE_TRACE
+ {
+ gint begin_line, begin_offset;
+ gint end_line, end_offset;
+
+ begin_line = gtk_text_iter_get_line (start);
+ begin_offset = gtk_text_iter_get_line_offset (start);
+ end_line = gtk_text_iter_get_line (end);
+ end_offset = gtk_text_iter_get_line_offset (end);
+
+ IDE_TRACE_MSG ("delete-range (%d:%d, %d:%d)",
+ begin_line, begin_offset,
+ end_line, end_offset);
+ }
+#endif
+
GTK_TEXT_BUFFER_CLASS (ide_buffer_parent_class)->delete_range (buffer, start, end);
+
ide_buffer_emit_cursor_moved (IDE_BUFFER (buffer));
+
+ IDE_EXIT;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]