mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
Merge branch 'textbuffer-foreground-property' into 'main'
textbuffer: Use correct foreground color property See merge request GNOME/gtk!5574
This commit is contained in:
commit
f019ff5287
@ -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