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

If visible, always display tooltip when changing volume on systray icon #87

Open
landroni opened this issue Aug 7, 2015 · 3 comments
Open

Comments

@landroni
Copy link

landroni commented Aug 7, 2015

The xfce4-mixer panel-plugin has a nifty feature: if tooltip displaying current volume level is visible, using scrollwheel to adjust volume will keep tooltip visible at each step displaying the volume level. I find it very useful.

I think pnmixer could do the same, independently of Prefs > Enable Notifications. This is minor, but a nifty feature...

@elboulangero
Copy link
Collaborator

I had a quick look, I'm not sure we can do that at the moment. PNMixer icon is created using GtkStatusIcon, and I didn't find many ways to interact with the tooltip. Xfce4 does that differently, they do not use GtkStatusIcon, instead they inherit GtkToggleButton, which itselfs is a GtkWidget. I believe there is most things that can be done this way.

Anyway, we have to get rid of GtkStatusIcon since it's deprecated. I think it will be done in the next PNMixer version. At this moment I'll will see what can be done with the tooltip.

@hasufell
Copy link
Collaborator

This shouldn't be a blocker for the release.

@hasufell hasufell added this to the 0.7 milestone Aug 10, 2015
@elboulangero
Copy link
Collaborator

Hey !

I have more info on that. I noticed that Volti uses GtkStatusIcon, and the tooltip remains displayed when scrolling on the icon. So what is the difference ? They use Gtk2, that's all.

I see two difference between Gtk2 and Gtk3:

  • in Gtk3, the tooltip is hidden when the icon is scrolled
  • in Gtk3, the signal "scroll_event" is sent twice instead of once

So basically, GtkStatusIcon is broken in Gtk3, nothing new here...

@elboulangero elboulangero removed this from the 0.7 milestone Feb 8, 2016
@elboulangero elboulangero changed the title if visible, always display tooltip when changing volume on systray icon If visible, always display tooltip when changing volume on systray icon Sep 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants