Commit 31e890ef authored by Jan-Michael Brummer's avatar Jan-Michael Brummer Committed by Marinus Schraal

albumsview: Add TOUCH_MASK event

Adding TOUCH_MASK to events box fixes album scrolling on wayland. It is
now possible to start scrolling on album covers without entering the
selected album.

https://bugzilla.gnome.org/show_bug.cgi?id=780548
parent 2d55533e
......@@ -23,7 +23,7 @@
# delete this exception statement from your version.
from gettext import gettext as _
from gi.repository import GLib, GObject, Gtk
from gi.repository import GLib, GObject, Gtk, Gdk
from gnomemusic import log
from gnomemusic.albumartcache import ArtSize
......@@ -176,6 +176,8 @@ class AlbumsView(BaseView):
child.image.set_property("width-request", ArtSize.medium.width)
child.image.set_property("height-request", ArtSize.medium.height)
child.events.add_events(Gdk.EventMask.TOUCH_MASK)
child.events.connect('button-release-event',
self._on_album_event_triggered,
child)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment