[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-54-g943185b17
paul at claws-mail.org
paul at claws-mail.org
Sat Aug 21 08:53:32 UTC 2021
The branch, gtk3 has been updated
via 943185b172797e76ac07cd6d5e6fdd57c3404ed9 (commit)
from d9457ce8c4e56b755690dcec36d32fb6e756c126 (commit)
Summary of changes:
src/gtk/gtkaspell.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 943185b172797e76ac07cd6d5e6fdd57c3404ed9
Author: paul <paul at claws-mail.org>
Date: Sat Aug 21 09:53:28 2021 +0100
reimplement spell checker underlining when black is chosen
diff --git a/src/gtk/gtkaspell.c b/src/gtk/gtkaspell.c
index ada3a5b4b..40a30abde 100644
--- a/src/gtk/gtkaspell.c
+++ b/src/gtk/gtkaspell.c
@@ -1,7 +1,7 @@
/* gtkaspell - a spell-checking addon for GtkText
* Copyright (c) 2000 Evan Martin (original code for ispell).
* Copyright (c) 2002 Melvin Hadasht.
- * Copyright (C) 2001-2019 the Claws Mail Team
+ * Copyright (C) 2001-2021 the Claws Mail Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -2238,12 +2238,17 @@ static void set_point_continue(GtkAspell *gtkaspell)
static void allocate_color(GtkAspell *gtkaspell, GdkRGBA rgba)
{
GtkTextBuffer *buffer = gtk_text_view_get_buffer(gtkaspell->gtktext);
+ static const gchar *col = NULL;
gtkaspell->highlight = rgba;
+ col = gtkut_gdk_rgba_to_string(&rgba);
- gtk_text_buffer_create_tag(buffer, "misspelled",
+ if (strcmp(col,"#000000") == 0)
+ gtk_text_buffer_create_tag(buffer, "misspelled",
+ "underline", PANGO_UNDERLINE_ERROR, NULL);
+ else
+ gtk_text_buffer_create_tag(buffer, "misspelled",
"foreground-rgba", &(gtkaspell->highlight), NULL);
-
}
static void change_color(GtkAspell * gtkaspell,
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list