summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2012-02-16 12:32:44 +0200
committerClaudio Saavedra <csaavedra@igalia.com>2012-02-16 12:33:26 +0200
commitcfe65a0d6c3118af2fe1faef315b96f945ec0b8e (patch)
tree5fb45be178abed62c512e73e05d479bb21e6bdff
parentccf7867c35e2ba33bfec74527e4e01150c215b87 (diff)
downloadgtk+-cfe65a0d6c3118af2fe1faef315b96f945ec0b8e.tar.gz
GtkNotebook: and another fix
https://bugzilla.gnome.org/show_bug.cgi?id=669116
-rw-r--r--gtk/gtknotebook.c2
1 files changed, 1 insertions, 1 deletions
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");