textbuffer: Use correct foreground color property
authorMat <mail@mathias.is>
Wed, 1 Mar 2023 02:01:46 +0000 (04:01 +0200)
committerMat <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

index 826e371fe5da9f76913ab13af9ec3820ede61f22..a8a7b774dca4758aa6c5001e4da570ce00770642 100644 (file)
@@ -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,