[at-spi2-core] Clarify atspi_editable_text_insert_text documentation



commit 6c474b6a537120622747f7b7821c5d5709615049
Author: Mike Gorse <mgorse alum wpi edu>
Date:   Wed Aug 28 11:28:17 2019 -0500

    Clarify atspi_editable_text_insert_text documentation
    
    Clarify that the length parameter expects a count of bytes. This matches
    the corresponding atk documentation.
    
    Fixes https://gitlab.gnome.org/GNOME/at-spi2-core/issues/9

 atspi/atspi-editabletext.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/atspi/atspi-editabletext.c b/atspi/atspi-editabletext.c
index e85aa4d..350617e 100644
--- a/atspi/atspi-editabletext.c
+++ b/atspi/atspi-editabletext.c
@@ -86,8 +86,8 @@ atspi_editable_text_set_text_contents (AtspiEditableText *obj,
  * @position: a #gint indicating the character offset at which to insert
  *       the new text.  
  * @text: a string representing the text to insert, in UTF-8 encoding.
- * @length:  the number of characters of text to insert. If the character
- * count of text is less than or equal to length, the entire contents
+ * @length:  the number of characters of text to insert, in bytes. If the
+ * byte count of text is less than or equal to length, the entire contents
  * of text will be inserted.
  *
  * Inserts text into an #AtspiEditableText object.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]