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

Scrolling down on tray icon: volume goes down only very slowly #99

Open
harryharryharry opened this issue Aug 8, 2018 · 6 comments
Open

Comments

@harryharryharry
Copy link

When I try to lower the volume by scrolling downwards on the tray icon (in xfce) the volume goes down only slightly and only when I scroll real fast. This issue is not apparent when scrolling up on the tray icon and scrolling on the volume icon in sonata itself works both ways.
(I'm on fedora 28 and cloned the master branch)

@multani
Copy link
Owner

multani commented Aug 8, 2018

This might be related to https://bugzilla.gnome.org/show_bug.cgi?id=693664

@harryharryharry
Copy link
Author

Thanks for the fast reply! That looks like a pretty old bug that (to my layman's eyes) has yet to be addressed. It is a pretty small hindrance to me, but is there something I can do to test if it is indeed due to this bug?

@multani
Copy link
Owner

multani commented Aug 9, 2018

There's a test script in the bug report (which needs either pygtk or python3 gobject-introspection) that shows the problem.
Let me know what you get!

@harryharryharry
Copy link
Author

harryharryharry commented Aug 10, 2018

Oops must've overlooked the test script, sorry.
I'm getting:

Using GObject Introspection
./test.py:7: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk

The script doesn't quit after this warning. I've tried adding:

import gi
gi.require_version('Gtk', '3.0') 

But that only hides the warning. Nothing appears in the system tray when running the script. I'm not really familiar with python, but shouldn't the script show a test tray icon to scroll over ?

@multani
Copy link
Owner

multani commented Aug 15, 2018

You can add a icon by replacing Gtk.StatusIcon() by something like Gtk.StatusIcon.new_from_icon_name("stock_folder") I suppose.

@harryharryharry
Copy link
Author

harryharryharry commented Aug 25, 2018

Scrolling upwards on the test icon gives me:

<enum GDK_SCROLL_UP of type Gdk.ScrollDirection>
<enum GDK_SCROLL_UP of type Gdk.ScrollDirection>

Scrolling downwards gives me:

<enum GDK_SCROLL_UP of type Gdk.ScrollDirection>
<enum GDK_SCROLL_DOWN of type Gdk.ScrollDirection>

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

2 participants