[gspell] InlineCheckerTextBuffer: remove gtk_widget_queue_draw() hack



commit 12b7f2dd0c44caaa17e8f9a5231dccf67af10f59
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Mar 31 18:14:55 2017 +0200

    InlineCheckerTextBuffer: remove gtk_widget_queue_draw() hack
    
    With the PANGO_UNDERLINE_SINGLE it is no longer needed normally.

 gspell/gspell-inline-checker-text-buffer.c |   21 ---------------------
 1 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/gspell/gspell-inline-checker-text-buffer.c b/gspell/gspell-inline-checker-text-buffer.c
index f00b251..0506e04 100644
--- a/gspell/gspell-inline-checker-text-buffer.c
+++ b/gspell/gspell-inline-checker-text-buffer.c
@@ -85,21 +85,6 @@ typedef enum
 
 G_DEFINE_TYPE (GspellInlineCheckerTextBuffer, _gspell_inline_checker_text_buffer, G_TYPE_OBJECT)
 
-/* FIXME properly. Workaround for bug in GtkTextView:
- * https://bugzilla.gnome.org/show_bug.cgi?id=763741
- */
-static void
-queue_draw_hack (GspellInlineCheckerTextBuffer *spell)
-{
-       GSList *l;
-
-       for (l = spell->views; l != NULL; l = l->next)
-       {
-               GtkWidget *view = GTK_WIDGET (l->data);
-               gtk_widget_queue_draw (view);
-       }
-}
-
 /* Remove the highlight_tag only if present. If gtk_text_buffer_remove_tag() is
  * called when the tag is not present, GtkTextView anyway queues a redraw, which
  * we want to avoid (it can lead to an infinite loop).
@@ -132,8 +117,6 @@ remove_highlight_tag_if_present (GspellInlineCheckerTextBuffer *spell,
                                            spell->highlight_tag,
                                            start,
                                            end);
-
-               queue_draw_hack (spell);
        }
 }
 
@@ -461,8 +444,6 @@ check_visible_region_in_view (GspellInlineCheckerTextBuffer *spell,
        {
                g_clear_object (&spell->scan_region);
        }
-
-       queue_draw_hack (spell);
 }
 
 static void
@@ -867,8 +848,6 @@ remove_tag_to_word (GspellInlineCheckerTextBuffer *spell,
 
                iter = match_end;
        }
-
-       queue_draw_hack (spell);
 }
 
 static void


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