docs: fix docs of functions to convert layout_index <-> text_index

Trivial commit.

The documentation was swapped. The documentation for the parameters and
the return values is good.
This commit is contained in:
Sébastien Wilmet 2016-11-25 21:32:09 +01:00
parent 8161f8dcca
commit e2881d1e4f

View File

@ -7727,12 +7727,11 @@ gtk_entry_get_layout (GtkEntry *entry)
* gtk_entry_layout_index_to_text_index:
* @entry: a #GtkEntry
* @layout_index: byte index into the entry layout text
*
* Converts from a position in the entry contents (returned
* by gtk_entry_get_text()) to a position in the
* entrys #PangoLayout (returned by gtk_entry_get_layout(),
* with text retrieved via pango_layout_get_text()).
*
*
* Converts from a position in the entrys #PangoLayout (returned by
* gtk_entry_get_layout()) to a position in the entry contents
* (returned by gtk_entry_get_text()).
*
* Returns: byte index into the entry contents
**/
gint
@ -7767,11 +7766,12 @@ gtk_entry_layout_index_to_text_index (GtkEntry *entry,
* gtk_entry_text_index_to_layout_index:
* @entry: a #GtkEntry
* @text_index: byte index into the entry contents
*
* Converts from a position in the entrys #PangoLayout (returned by
* gtk_entry_get_layout()) to a position in the entry contents
* (returned by gtk_entry_get_text()).
*
*
* Converts from a position in the entry contents (returned
* by gtk_entry_get_text()) to a position in the
* entrys #PangoLayout (returned by gtk_entry_get_layout(),
* with text retrieved via pango_layout_get_text()).
*
* Returns: byte index into the entry layout text
**/
gint