[gtksourceview] view: add debug message in highlight_updated_cb()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gtksourceview] view: add debug message in highlight_updated_cb()
- Date: Thu, 20 Oct 2016 13:13:10 +0000 (UTC)
commit bf4af81fc03ee38ba85ff9912703c8d6dd185aeb
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Oct 20 14:28:56 2016 +0200
    view: add debug message in highlight_updated_cb()
    
    With test-widget, we receive the signals two times with the same range,
    because there are two GtkSourceViews. It is not a bug in the context
    engine, the context engine sends the signal just once.
 gtksourceview/gtksourceview.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/gtksourceview/gtksourceview.c b/gtksourceview/gtksourceview.c
index e3ddade..b533898 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -1423,6 +1423,19 @@ highlight_updated_cb (GtkSourceBuffer *buffer,
        GtkTextIter intersect_start;
        GtkTextIter intersect_end;
 
+#if 0
+       {
+               static gint nth_call = 0;
+
+               g_message ("%s(view=%p) %d [%d-%d]",
+                          G_STRFUNC,
+                          text_view,
+                          ++nth_call,
+                          gtk_text_iter_get_offset (_start),
+                          gtk_text_iter_get_offset (_end));
+       }
+#endif
+
        start = *_start;
        end = *_end;
        gtk_text_iter_order (&start, &end);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]