[gtk+/gtk-3-2] GtkNotebook: fix one child-notify emission
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-2] GtkNotebook: fix one child-notify emission
- Date: Mon, 12 Mar 2012 02:57:51 +0000 (UTC)
commit 0694e8bcd310cf3dcdc7d909bf2ba4abe42e00d2
Author: Claudio Saavedra <csaavedra igalia com>
Date: Thu Feb 16 12:24:21 2012 +0200
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
gtk/gtknotebook.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index d04ae397..db3e067 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -7970,7 +7970,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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]