Tray icon: click, wheel behaviour: can it be improved

Asked by Timothée Manaud

I was wondering, if scroll up and down could be associated to next and prev track, as on gnome at least, volume applet already offers the volume control with the wheel mouse.
Here is a piece of code going to /usr/lib/exaile/xlgui/tray.py
    def _scrolled(self, icon, event):
 if event.state:
  if event.direction == gtk.gdk.SCROLL_UP:
   self.queue.next()
  elif event.direction == gtk.gdk.SCROLL_DOWN:
   self.queue.prev()
If would be even better if, keeping the middle click button press on the tray icon while scrolling, would ff and fw to seek the song.
I know the current plugin as horizontal scroll offering something close to this feature, but, two direction wheels aren't that common.

Question information

Language:
English Edit question
Status:
Answered
For:
Exaile Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
reacocard (reacocard) said :
#1

up and down are currently mapped to volume up and down, so now, we cannot implement this.

Revision history for this message
Johannes Sasongko (sjohannes) said :
#2

Next and Previous are available as Shift + scroll up and Shift + scroll down.

Can you help with this problem?

Provide an answer of your own, or ask Timothée Manaud for more information if necessary.

To post a message you must log in.