gsk: Update docs for gtk_snapshot_append_layout
authorAlexandros Theodotou <alex@zrythm.org>
Wed, 16 Aug 2023 11:09:15 +0000 (20:09 +0900)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 24 Aug 2023 14:23:31 +0000 (10:23 -0400)
Mention how to get the current theme's foreground color.

gtk/gskpango.c

index c83f97f537f77f4d7aa1a854d71f30ceb0b87dc3..68cef4e6d322b569a7ab93f943c3d3e20d55057e 100644 (file)
@@ -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.