Issue #6970: Restore GTK2 tab scrolling behavior for GimpDockBook
This patch attempts to resolve issue #6970 (closed).
In GIMP 2.10, you can switch between dockable dialogue tabs using your mouse's scroller if your cursor is over the tab bar.
This was a built-in behavior for GtkNotebook
in GTK2, which GimpDockBook
is based on. However, it was removed in GTK3.
Some GTK3 applications have re-implemented this feature themselves. This patch is based on Geany's implementation in particular. It adds a scroll-event
callback to GimpDockBook
which switches tabs based on the direction of the scroll.