[gtk+/gtk-3-22] docs: fix docs of functions to convert layout_index <-> text_index



commit ca757482234c963ea29b41922ddf80bffcb7e98f
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Nov 25 21:32:09 2016 +0100

    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 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 2fc0116..b18ee3c 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -8188,12 +8188,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
@@ -8228,11 +8227,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


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