app: Add GDK_SCROLL_MASK to gimpviewablebutton initialization.

This makes these buttons respond to scroll wheels again, a regression encountered in GIMP 2.99.x.
Code location and fix found by Massimo Valentini.

Fixes issue #6929.
This commit is contained in:
Michael Schumacher 2022-10-24 00:27:13 +02:00
parent ce6626163e
commit 149358021e
1 changed files with 2 additions and 0 deletions

View File

@ -110,6 +110,8 @@ gimp_viewable_button_init (GimpViewableButton *button)
button->button_view_size = GIMP_VIEW_SIZE_SMALL;
button->view_border_width = 1;
gtk_widget_add_events (GTK_WIDGET (button), GDK_SCROLL_MASK);
}
static void