From: Mat Date: Sun, 28 Aug 2022 20:55:15 +0000 (+0300) Subject: gtknotebook: update arrow button state when reordering tabs X-Git-Tag: archive/raspbian/4.8.3+ds-2+rpi1~3^2~20^2~3^2~41^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=dd8c8997374a4ea6a20d22190f349bddbe27699f;p=gtk4.git gtknotebook: update arrow button state when reordering tabs When reordering notebook tabs, updating the sensitivity state of the arrow buttons is necessary if the tab is moved to the beginning or end of the tab list. --- diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 62b3c96b26..1328e27143 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -6774,6 +6774,7 @@ gtk_notebook_child_reordered (GtkNotebook *notebook, gtk_widget_insert_after (page->tab_widget, notebook->tabs_widget, sibling); + update_arrow_state (notebook); gtk_notebook_update_labels (notebook); gtk_widget_queue_allocate (notebook->tabs_widget); }