[gspell/wip/inline-checker-gtv] inline-checker-gtv: don't update highlight tag priority
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gspell/wip/inline-checker-gtv] inline-checker-gtv: don't update highlight tag priority
- Date: Sun, 13 Dec 2015 14:04:11 +0000 (UTC)
commit 06e64f5aff7af00effea0f9968a27338765dbef3
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Dec 13 15:01:36 2015 +0100
inline-checker-gtv: don't update highlight tag priority
If every GtkTextView feature do that, it creates an infinite loop.
gspell/gspell-inline-checker-gtv.c | 32 --------------------------------
1 files changed, 0 insertions(+), 32 deletions(-)
---
diff --git a/gspell/gspell-inline-checker-gtv.c b/gspell/gspell-inline-checker-gtv.c
index 8518fb6..a91e472 100644
--- a/gspell/gspell-inline-checker-gtv.c
+++ b/gspell/gspell-inline-checker-gtv.c
@@ -807,24 +807,12 @@ popup_menu_cb (GtkTextView *view,
}
static void
-update_highlight_tag_priority (GspellInlineCheckerGtv *spell,
- GtkTextTagTable *table)
-{
- g_return_if_fail (spell->highlight_tag != NULL);
-
- gtk_text_tag_set_priority (spell->highlight_tag,
- gtk_text_tag_table_get_size (table) - 1);
-}
-
-static void
tag_added_cb (GtkTextTagTable *table,
GtkTextTag *tag,
GspellInlineCheckerGtv *spell)
{
gchar *name;
- update_highlight_tag_priority (spell, table);
-
g_object_get (tag, "name", &name, NULL);
if (g_strcmp0 (name, "gtksourceview:context-classes:no-spell-check") == 0)
@@ -844,11 +832,6 @@ tag_removed_cb (GtkTextTagTable *table,
GtkTextTag *tag,
GspellInlineCheckerGtv *spell)
{
- if (tag != spell->highlight_tag)
- {
- update_highlight_tag_priority (spell, table);
- }
-
if (spell->no_spell_check_tag != NULL &&
spell->no_spell_check_tag == tag)
{
@@ -859,15 +842,6 @@ tag_removed_cb (GtkTextTagTable *table,
}
static void
-tag_changed_cb (GtkTextTagTable *table,
- GtkTextTag *tag,
- gboolean size_changed,
- GspellInlineCheckerGtv *spell)
-{
- update_highlight_tag_priority (spell, table);
-}
-
-static void
set_buffer (GspellInlineCheckerGtv *spell,
GtkTextBuffer *buffer)
{
@@ -923,12 +897,6 @@ set_buffer (GspellInlineCheckerGtv *spell,
spell,
0);
- g_signal_connect_object (tag_table,
- "tag-changed",
- G_CALLBACK (tag_changed_cb),
- spell,
- 0);
-
/* For now we don't care where the mark points. The start looks like a
* good place to begin with.
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]