Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse scroll on system tray icon does not work #7

Open
TomaszGasior opened this issue Feb 11, 2017 · 0 comments
Open

Mouse scroll on system tray icon does not work #7

TomaszGasior opened this issue Feb 11, 2017 · 0 comments

Comments

@TomaszGasior
Copy link

TomaszGasior commented Feb 11, 2017

In oryginal RadioTray, when I scrolled by mouse wheel on system tray icon, I changed volume. In this RadioTray version this feature does not work, because of incompatibility with GTK3.

You should correct SysTray.py file in scroll event and use Gdk.ScrollDirection object.

def scroll(self,widget, event):
    if event.direction == Gdk.ScrollDirection.UP:
        self.mediator.volume_up()

    if event.direction == Gdk.ScrollDirection.DOWN:
        self.mediator.volume_down() 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant