projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16eced7
)
gtknotebook: update arrow button state when reordering tabs
author
Mat
<mail@mathias.is>
Sun, 28 Aug 2022 20:55:15 +0000
(23:55 +0300)
committer
Mat
<mail@mathias.is>
Sun, 28 Aug 2022 21:00:10 +0000
(
00:00
+0300)
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
patch
|
blob
|
history
diff --git
a/gtk/gtknotebook.c
b/gtk/gtknotebook.c
index 62b3c96b267da5faee9a0c16f5a5947a68732977..1328e2714387c14593328bef9d839c714cc3ded0 100644
(file)
--- 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);
}