summaryrefslogtreecommitdiff
path: root/gtk/gtknotebook.c
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2012-02-16 12:24:21 +0200
committerClaudio Saavedra <csaavedra@igalia.com>2012-02-16 12:28:46 +0200
commitccf7867c35e2ba33bfec74527e4e01150c215b87 (patch)
tree89d4f68ea0abf867c3076b38d8b35a219a162b5a /gtk/gtknotebook.c
parentbf89bc624b34cf4b4291dd05f0adff9d34945f01 (diff)
downloadgtk+-ccf7867c35e2ba33bfec74527e4e01150c215b87.tar.gz
GtkNotebook: fix one child-notify emission
Forgot to increase the counter in the for loop, doing it now. https://bugzilla.gnome.org/show_bug.cgi?id=669116
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r--gtk/gtknotebook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 8f9221135e..c51baf03f2 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -8039,7 +8039,7 @@ gtk_notebook_reorder_child (GtkNotebook *notebook,
/* Move around the menu items if necessary */
gtk_notebook_child_reordered (notebook, page);
- for (list = priv->children, i = 0; list; list = list->next)
+ for (list = priv->children, i = 0; list; list = list->next, i++)
{
if (MIN (old_pos, position) <= i && i <= MAX (old_pos, position))
gtk_widget_child_notify (((GtkNotebookPage *) list->data)->child, "position");