summaryrefslogtreecommitdiff
path: root/pango/reorder-items.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/reorder-items.c')
-rw-r--r--pango/reorder-items.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/pango/reorder-items.c b/pango/reorder-items.c
index e5ceeb6f..c30d003b 100644
--- a/pango/reorder-items.c
+++ b/pango/reorder-items.c
@@ -20,7 +20,7 @@
*/
#include "config.h"
-#include "pango-glyph.h"
+#include "pango-item.h"
/*
* NB: The contents of the file implement the exact same algorithm
@@ -31,7 +31,7 @@ static GList *reorder_items_recurse (GList *items, int n_items);
/**
* pango_reorder_items:
- * @logical_items: (element-type Pango.Item): a `GList` of `PangoItem`
+ * @items: (element-type Pango.Item): a `GList` of `PangoItem`
* in logical order.
*
* Reorder items from logical order to visual order.
@@ -47,13 +47,14 @@ static GList *reorder_items_recurse (GList *items, int n_items);
* of `PangoItem` structures in visual order.
*/
GList *
-pango_reorder_items (GList *logical_items)
+pango_reorder_items (GList *items)
{
- return reorder_items_recurse (logical_items, g_list_length (logical_items));
+ return reorder_items_recurse (items, g_list_length (items));
}
static GList *
-reorder_items_recurse (GList *items, int n_items)
+reorder_items_recurse (GList *items,
+ int n_items)
{
GList *tmp_list, *level_start_node;
int i, level_start_i;