[gtk/gtk-4-6: 4/5] gtknotebook: update arrow button state when reordering tabs




commit 2bb0d815ee804a65ae037fa2cf2090feeff19cc4
Author: Mat <mail mathias is>
Date:   Sun Aug 28 23:55:15 2022 +0300

    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.

 gtk/gtknotebook.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 5e72ad0e80..2cf7aab004 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -6811,6 +6811,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);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]