Skip to content

Issue #6970: Restore GTK2 tab scrolling behavior for GimpDockBook

Alx Sa requested to merge alxsa-restore-dockable-mouse-scroll into master

This patch attempts to resolve issue #6970.

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.

Merge request reports