From 313078b77c76b36afaf3de02089ffcc8f5d05fa8 Mon Sep 17 00:00:00 2001 From: Alexandros Theodotou Date: Wed, 16 Aug 2023 20:09:15 +0900 Subject: [PATCH] gsk: Update docs for gtk_snapshot_append_layout Mention how to get the current theme's foreground color. --- gtk/gskpango.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gskpango.c b/gtk/gskpango.c index c83f97f537..68cef4e6d3 100644 --- a/gtk/gskpango.c +++ b/gtk/gskpango.c @@ -459,7 +459,8 @@ gsk_pango_renderer_release (GskPangoRenderer *renderer) * * Creates render nodes for rendering @layout in the given foregound @color * and appends them to the current node of @snapshot without changing the - * current node. + * current node. The current theme's foreground color for a widget can be + * obtained with [method@Gtk.Widget.get_color]. * * Note that if the layout does not produce any visible output, then nodes * may not be added to the @snapshot.