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:
@ -6202,6 +6202,9 @@ gtk_notebook_real_switch_page (GtkNotebook *notebook,
|
|||||||
gtk_widget_grab_focus (GTK_WIDGET (notebook));
|
gtk_widget_grab_focus (GTK_WIDGET (notebook));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (priv->scrollable)
|
||||||
|
gtk_notebook_redraw_arrows (notebook);
|
||||||
|
|
||||||
gtk_widget_queue_resize (GTK_WIDGET (notebook));
|
gtk_widget_queue_resize (GTK_WIDGET (notebook));
|
||||||
g_object_notify_by_pspec (G_OBJECT (notebook), properties[PROP_PAGE]);
|
g_object_notify_by_pspec (G_OBJECT (notebook), properties[PROP_PAGE]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user