forked from AuroraMiddleware/gtk
GtkNotebook: and another fix
https://bugzilla.gnome.org/show_bug.cgi?id=669116
This commit is contained in:
parent
ccf7867c35
commit
cfe65a0d6c
@ -3195,7 +3195,7 @@ gtk_notebook_stop_reorder (GtkNotebook *notebook)
|
|||||||
|
|
||||||
if (priv->has_scrolled || old_page_num != page_num)
|
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))
|
if (MIN (old_page_num, page_num) <= i && i <= MAX (old_page_num, page_num))
|
||||||
gtk_widget_child_notify (((GtkNotebookPage *) element->data)->child, "position");
|
gtk_widget_child_notify (((GtkNotebookPage *) element->data)->child, "position");
|
||||||
|
Loading…
Reference in New Issue
Block a user