Merge branch 'textbuffer-foreground-property' into 'main'

textbuffer: Use correct foreground color property

See merge request GNOME/gtk!5574
This commit is contained in:
Matthias Clasen 2023-03-01 02:46:05 +00:00
commit f019ff5287

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,