GtkNotebookPrivate *priv;
GtkNotebookPage *page;
GtkAllocation allocation;
- GList *children, *other_order;
+ GList *children;
gboolean showarrow;
gint width, height;
gint x, y;
if (children != NULL)
{
- other_order = NULL;
+ GList *other_order = NULL;
while (children)
{
}
/* draw them with the opposite order */
- children = other_order;
-
- while (children)
+ for (children = other_order; children; children = children->next)
{
page = children->data;
tab_flags = _gtk_notebook_get_tab_flags (notebook, page);
gtk_notebook_draw_tab (notebook, page, cr, tab_flags);
-
- children = children->next;
}
+
+ g_list_free (other_order);
}
if (showarrow && priv->scrollable)