From cfe65a0d6c3118af2fe1faef315b96f945ec0b8e Mon Sep 17 00:00:00 2001 From: Claudio Saavedra Date: Thu, 16 Feb 2012 12:32:44 +0200 Subject: GtkNotebook: and another fix https://bugzilla.gnome.org/show_bug.cgi?id=669116 --- gtk/gtknotebook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index c51baf03f2..cf3fde5118 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -3195,7 +3195,7 @@ gtk_notebook_stop_reorder (GtkNotebook *notebook) if (priv->has_scrolled || old_page_num != page_num) { - for (element = priv->children, i = 0; element; element = element->next) + for (element = priv->children, i = 0; element; element = element->next, i++) { if (MIN (old_page_num, page_num) <= i && i <= MAX (old_page_num, page_num)) gtk_widget_child_notify (((GtkNotebookPage *) element->data)->child, "position"); -- cgit v1.2.1