mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
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:
parent
8eb3c55709
commit
c08e739996
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user