projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8eb3c55
)
textbuffer: Use correct foreground color property
author
Mat
<mail@mathias.is>
Wed, 1 Mar 2023 02:01:46 +0000
(
04:01
+0200)
committer
Mat
<mail@mathias.is>
Wed, 1 Mar 2023 02:14:19 +0000
(
04:14
+0200)
The 'foreground-rgba' property should be used instead of 'foreground',
since the latter is not readable.
gtk/gtktextbuffer.c
patch
|
blob
|
history
diff --git
a/gtk/gtktextbuffer.c
b/gtk/gtktextbuffer.c
index 826e371fe5da9f76913ab13af9ec3820ede61f22..a8a7b774dca4758aa6c5001e4da570ce00770642 100644
(file)
--- 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,