[gtksourceview] buffer: fix broken implementation from previous commit



commit 8f9547dfe04d72e6d0c551f17de967d5ca95e4c5
Author: Christian Hergert <chergert redhat com>
Date:   Fri Apr 22 01:55:16 2016 -0700

    buffer: fix broken implementation from previous commit
    
    My apologies for breaking this up into two.

 gtksourceview/gtksourcebuffer.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtksourceview/gtksourcebuffer.c b/gtksourceview/gtksourcebuffer.c
index c9a4ebd..6efbbce 100644
--- a/gtksourceview/gtksourcebuffer.c
+++ b/gtksourceview/gtksourcebuffer.c
@@ -914,12 +914,12 @@ bracket_pair (gunichar  base_char,
  * the GTK+ inspector.
  */
 static void
-remove_tag_with_minimal_damage (GtkSourceBuffer   *buffer,
+remove_tag_with_minimal_damage (GtkTextBuffer     *buffer,
                                 GtkTextTag        *tag,
                                 const GtkTextIter *begin,
                                 const GtkTextIter *end)
 {
-       GtkTextIter tag_begin = *start;
+       GtkTextIter tag_begin = *begin;
        GtkTextIter tag_end;
 
        if (!gtk_text_iter_starts_tag (&tag_begin, tag))
@@ -1000,7 +1000,7 @@ update_bracket_highlighting (GtkSourceBuffer *source_buffer)
 
                gtk_text_buffer_get_bounds (buffer, &start, &end);
 
-               remove_tag_with_minimal_damage (source_buffer,
+               remove_tag_with_minimal_damage (GTK_TEXT_BUFFER (source_buffer),
                                                source_buffer->priv->bracket_match_tag,
                                                &start,
                                                &end);


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