From c08e739996ccded436c40b503dee65bc07b08ffa Mon Sep 17 00:00:00 2001 From: Mat Date: Wed, 1 Mar 2023 04:01:46 +0200 Subject: [PATCH] textbuffer: Use correct foreground color property The 'foreground-rgba' property should be used instead of 'foreground', since the latter is not readable. --- gtk/gtktextbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtktextbuffer.c b/gtk/gtktextbuffer.c index 826e371fe5..a8a7b774dc 100644 --- a/gtk/gtktextbuffer.c +++ b/gtk/gtktextbuffer.c @@ -5336,7 +5336,7 @@ gtk_text_buffer_get_run_attributes (GtkTextBuffer *buffer, GdkRGBA *rgba; char *value; - g_object_get (tag, "foreground", &rgba, NULL); + g_object_get (tag, "foreground-rgba", &rgba, NULL); value = g_strdup_printf ("%u,%u,%u", (guint) rgba->red * 65535, (guint) rgba->green * 65535,