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



commit e2881d1e4f1becbf4caa6549f396ecfe1bb0af7d
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 241d1d7..188be89 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


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