From e2881d1e4f1becbf4caa6549f396ecfe1bb0af7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Wilmet?= Date: Fri, 25 Nov 2016 21:32:09 +0100 Subject: [PATCH] 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. --- gtk/gtkentry.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index 241d1d7b15..188be89076 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -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 - * entry’s #PangoLayout (returned by gtk_entry_get_layout(), - * with text retrieved via pango_layout_get_text()). - * + * + * Converts from a position in the entry’s #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 entry’s #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 + * entry’s #PangoLayout (returned by gtk_entry_get_layout(), + * with text retrieved via pango_layout_get_text()). + * * Returns: byte index into the entry layout text **/ gint