summaryrefslogtreecommitdiff
path: root/atspi/atspi-editabletext.c
diff options
context:
space:
mode:
authorAline Bessa <alibezz@gmail.com>2011-07-27 21:39:32 -0300
committerMike Gorse <mgorse@novell.com>2011-08-23 21:26:00 -0500
commitfb39e18eca5286266d231afba33be0c4719cf5d5 (patch)
treec97a69b2c1106f5f025850b39999171cb605a070 /atspi/atspi-editabletext.c
parent2a48cb5c384a3ce6626ecb3dc923b3e0b5059716 (diff)
downloadat-spi2-core-fb39e18eca5286266d231afba33be0c4719cf5d5.tar.gz
Improving atspi-editabletext.c documentation
Diffstat (limited to 'atspi/atspi-editabletext.c')
-rw-r--r--atspi/atspi-editabletext.c54
1 files changed, 28 insertions, 26 deletions
diff --git a/atspi/atspi-editabletext.c b/atspi/atspi-editabletext.c
index 153230c3..58ac7152 100644
--- a/atspi/atspi-editabletext.c
+++ b/atspi/atspi-editabletext.c
@@ -28,12 +28,12 @@
/**
* atspi_editable_text_set_attributes:
* @obj: a pointer to the #AtspiEditableText object to modify.
- * @attributes: a character string indicating the attributes to apply to the range,
+ * @attributes: a string indicating the attributes to apply to the range,
* delimited by ':'.
- * @startOffset: a #long indicating the start of the desired text range.
- * @endOffset: a #long indicating the first character past the desired range.
+ * @startOffset: a #gint indicating the start of the desired text range.
+ * @endOffset: a #gint indicating the first character past the desired range.
*
- * Set the attributes applied to a range of text from an #AtspiEditableText
+ * Sets the attributes applied to a range of text from an #AtspiEditableText
* object, and the bounds of the range.
*
* Returns: #TRUE if the operation was successful, otherwise #FALSE.
@@ -83,15 +83,17 @@ atspi_editable_text_set_text_contents (AtspiEditableText *obj,
/**
* atspi_editable_text_insert_text:
* @obj: a pointer to the #AtspiEditableText object to modify.
- * @position: an integer indicating the character offset at which to insert
+ * @position: a #gint indicating the character offset at which to insert
* the new text.
- * @text: a gchar* pointer to the text to insert, in UTF-8 encoding.
- * @length: (frankly I'm not sure this parameter should be here)
+ * @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
+ * of text will be inserted.
*
- * Insert text into an #AtspiEditableText object.
+ * Inserts text into an #AtspiEditableText object.
* As with all character offsets, the specified @position may not be the
- * same as the resulting byte offset, since the text is in a
- * variable-width encoding.
+ * same as the resulting byte offset, since the text is in a
+ * variable-width encoding.
*
* Returns: #TRUE if the operation was successful, otherwise #FALSE.
**/
@@ -115,14 +117,14 @@ atspi_editable_text_insert_text (AtspiEditableText *obj,
/**
* atspi_editable_text_copy_text:
* @obj: a pointer to the #AtspiEditableText object to modify.
- * @start_pos: an integer indicating the starting character offset
+ * @start_pos: a #gint indicating the starting character offset
* of the text to copy.
- * @end_pos: an integer indicating the offset of the first character
+ * @end_pos: a #gint indicating the offset of the first character
* past the end of the text section to be copied.
*
- * Copy text from an #AtspiEditableText object into the clipboard.
+ * Copies text from an #AtspiEditableText object into the system clipboard.
*
- * see: atspi_editable_text_paste_text
+ * see: #atspi_editable_text_paste_text
*
* Returns: #TRUE if the operation was successful, otherwise #FALSE.
**/
@@ -144,15 +146,15 @@ atspi_editable_text_copy_text (AtspiEditableText *obj,
/**
* atspi_editable_text_cut_text:
* @obj: a pointer to the #AtspiEditableText object to modify.
- * @start_pos: an integer indicating the starting character offset
+ * @start_pos: a #gint indicating the starting character offset
* of the text to cut.
- * @end_pos: an integer indicating the offset of the first character
+ * @end_pos: a #gint indicating the offset of the first character
* past the end of the text section to be cut.
*
- * Delete text from an #AtspiEditableText object, copying the
- * excised portion into the clipboard.
+ * Deletes text from an #AtspiEditableText object, copying the
+ * excised portion into the system clipboard.
*
- * see: atspi_editable_text_paste_text
+ * see: #atspi_editable_text_paste_text
*
* Returns: #TRUE if operation was successful, #FALSE otherwise.
**/
@@ -175,15 +177,15 @@ atspi_editable_text_cut_text (AtspiEditableText *obj,
/**
* atspi_editable_text_delete_text:
* @obj: a pointer to the #AtspiEditableText object to modify.
- * @start_pos: an integer indicating the starting character offset
+ * @start_pos: a #gint indicating the starting character offset
* of the text to delete.
- * @end_pos: an integer indicating the offset of the first character
+ * @end_pos: a #gint indicating the offset of the first character
* past the end of the text section to be deleted.
*
- * Delete text from an #AtspiEditableText object, without copying the
- * excised portion into the clipboard.
+ * Deletes text from an #AtspiEditableText object, without copying the
+ * excised portion into the system clipboard.
*
- * see: atspi_editable_text_cut_text
+ * see: #atspi_editable_text_cut_text
*
* Returns: #TRUE if the operation was successful, otherwise #FALSE.
**/
@@ -206,10 +208,10 @@ atspi_editable_text_delete_text (AtspiEditableText *obj,
/**
* atspi_editable_text_paste_text:
* @obj: a pointer to the #AtspiEditableText object to modify.
- * @position: an integer indicating the character offset at which to insert
+ * @position: a #gint indicating the character offset at which to insert
* the new text.
*
- * Insert text from the clipboard into an #AtspiEditableText object.
+ * Inserts text from the system clipboard into an #AtspiEditableText object.
* As with all character offsets, the specified @position may not be the
* same as the resulting byte offset, since the text is in a
* variable-width encoding.