textbuffer: Use correct foreground color property

The 'foreground-rgba' property should be used instead of 'foreground',
since the latter is not readable.
This commit is contained in:
Mat 2023-03-01 04:01:46 +02:00
parent 8eb3c55709
commit c08e739996

View File

@ -5336,7 +5336,7 @@ gtk_text_buffer_get_run_attributes (GtkTextBuffer *buffer,
GdkRGBA *rgba; GdkRGBA *rgba;
char *value; char *value;
g_object_get (tag, "foreground", &rgba, NULL); g_object_get (tag, "foreground-rgba", &rgba, NULL);
value = g_strdup_printf ("%u,%u,%u", value = g_strdup_printf ("%u,%u,%u",
(guint) rgba->red * 65535, (guint) rgba->red * 65535,
(guint) rgba->green * 65535, (guint) rgba->green * 65535,