notebook: Update arrow state when switching pages

Otherwise, we may end up showing clickable arrows that don't
do anything.

https://bugzilla.gnome.org/show_bug.cgi?id=770332
This commit is contained in:
Matthias Clasen 2016-08-24 14:10:35 -04:00
parent 07e9b399d5
commit ae636ba0c2

View File

@ -6202,6 +6202,9 @@ gtk_notebook_real_switch_page (GtkNotebook *notebook,
gtk_widget_grab_focus (GTK_WIDGET (notebook));
}
if (priv->scrollable)
gtk_notebook_redraw_arrows (notebook);
gtk_widget_queue_resize (GTK_WIDGET (notebook));
g_object_notify_by_pspec (G_OBJECT (notebook), properties[PROP_PAGE]);
}