mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-15 23:00:08 +00:00
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:
parent
07e9b399d5
commit
ae636ba0c2
@ -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]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user