From: Alexandros Theodotou Date: Wed, 16 Aug 2023 11:09:15 +0000 (+0900) Subject: gsk: Update docs for gtk_snapshot_append_layout X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2^2~21 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3a55f750bc68a2351bc9d44f59186f69dbf8465e;p=gtk4.git gsk: Update docs for gtk_snapshot_append_layout Mention how to get the current theme's foreground color. --- 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.