GtkCssProvider: fix element type in docs
authorLukáš Tyrychtr <lukastyrychtr@gmail.com>
Mon, 23 Jan 2023 09:56:57 +0000 (10:56 +0100)
committerLukáš Tyrychtr <lukastyrychtr@gmail.com>
Mon, 23 Jan 2023 11:12:00 +0000 (12:12 +0100)
The method takes an array of char, which actually is UTF-8, so make the docs say so.
Fixes #5543

gtk/gtkcssprovider.c

index 1cd3f4c12b63015a76471477237ae31c1874662d..05adf955499c5fd288da9291bab5011092a71366 100644 (file)
@@ -1086,7 +1086,7 @@ gtk_css_provider_load_internal (GtkCssProvider *self,
 /**
  * gtk_css_provider_load_from_data:
  * @css_provider: a `GtkCssProvider`
- * @data: (array length=length) (element-type guint8): CSS data loaded in memory
+ * @data: (array length=length) (element-type utf8): CSS data loaded in memory
  * @length: the length of @data in bytes, or -1 for NUL terminated strings. If
  *   @length is not -1, the code will assume it is not NUL terminated and will
  *   potentially do a copy.