Indicator icon misreports scroll down event as scroll up

Bug #1071598 reported by Jazzicatz
144
This bug affects 24 people
Affects Status Importance Assigned to Milestone
Variety
Fix Released
Critical
Unassigned

Bug Description

When scrolling on the indicator icon, only scroll-up events are registered.
Scroll-down events will be reported as scroll-up instead, which makes it impossible
to go to the next wallpaper.

I believe this is a bug in the unity API, but I'm not sure.

Revision history for this message
Peter Levi (peterlevi) wrote :

Which versions of Variety and Ubuntu are you using (and I understand it happens under Unity, right)? Could you please try both 0.4.11 and the latest committed version and tell me if they both have the problem for you. There were recent related changes but they are only in the bzr branch, and have not been released.

Revision history for this message
Peter Levi (peterlevi) wrote :

I actually managed to reproduce this myself in 12.10 in VirtualBox, though I'm not sure it is not VirtualBox interfering with the mouse. Are you seeing this on a normal installation of 12.10? No matter in which direction I scroll, the scroll direction is always reported as scroll-up.... Seems like a nasty bug of AppIndicator or Unity or whatever. I'm searching for the proper place to report it.

Revision history for this message
Jazzicatz (jessicatz-fairymeadow-gmail) wrote :

I'm using variety 0.4.11 on Ubuntu 12.10 32bit (using unity).

Just now I checked out the bzr repo and ran the bin/variety - the bug still appears there.

Revision history for this message
Peter Levi (peterlevi) wrote :

As a temporary workaround, please use the menu item in Playback submenu, or define a keyboard shortcut to run "/opt/extras.ubuntu.com/variety/bin/variety --next"

Revision history for this message
Peter Levi (peterlevi) wrote :

Here is some sample code demonstrating the bug in 12.10:

from gi.repository import Gtk, Gdk, AppIndicator3

if __name__ == "__main__":
    menu = Gtk.Menu()
    quit = Gtk.MenuItem("Quit")
    quit.connect("activate", Gtk.main_quit)
    menu.append(quit)
    menu.show_all()

    def scroll(ind, steps, direction):
        print steps, direction
        if direction != Gdk.ScrollDirection.UP:
            print "Things seem ok"

    indicator = AppIndicator3.Indicator.new('testscroll', '', AppIndicator3.IndicatorCategory.APPLICATION_STATUS)
    indicator.set_status(AppIndicator3.IndicatorStatus.ACTIVE)
    indicator.set_icon("/usr/share/pixmaps/firefox.png")
    indicator.connect("scroll-event", scroll)
    indicator.set_menu(menu)

    Gtk.main()

Revision history for this message
Jazzicatz (jessicatz-fairymeadow-gmail) wrote :

Yeah, scrolling down or up both reports GDK_SCROLL_UP with that testcase.

Revision history for this message
Peter Levi (peterlevi) wrote :
Revision history for this message
Peter Levi (peterlevi) wrote :

Bug also reported here (as this seems to be the more appropriate place):
https://bugs.launchpad.net/indicator-application/+bug/1075152
Please report there that it affects you so that it is noticed and fixed sooner. Thank you.

Peter Levi (peterlevi)
Changed in variety:
importance: Undecided → Critical
Revision history for this message
Yop Spanjers (yopspanjers) wrote :

Confirmed for affecting multiple users.

Changed in variety:
status: New → Confirmed
Revision history for this message
Bsienn (bsienn) wrote :

It seems many users of Ubuntu with unity have this issue,
I am having the same problem.

OS: Ubuntu 13.10 stock installation
Desktop: Unity
Variety 0.4.17

Revision history for this message
AC (awc2k) wrote :

https://bugs.launchpad.net/variety/+bug/1071598

Variety Version: 0.4.17
Desktop Environment: Unity
OS: Ubuntu 13.10

This is the first time I've posted on Launchpad.net I believe this is a duplicate bug because I saw someone else with a similar scroll wheel post. Also, I tried to create a log file... if someone could help me undstand that process, that would most appreciated.

Background:
I disabled all picture sources and specified one folder location for pictures.
(I.E. unchecked all but one box under the "general" tab in "preferences".)
Also, I unchecked the download wallpapers option.

Issue:
Everytime I use the scroll wheel it only goes to the previously used wallpaper.
When I scroll forward it goes backwards.
When I scroll backwards it goes backwards.

For some reason it's using the history.
(I noticed that after selecting a bunch of wallpapers and then using the scroll wheel.)

I can use the mouse to click the next and previous wallpapers... but the scroll wheel has issues.

Actions Taken:
I have tried reinstalling the "libindicator" and "appindicator" packages through synaptic package manager. That didn't help.

Revision history for this message
Kevin Raskell (kevorski11) wrote :

So I have this issue on Linux Mint 16, are there any solutions I should try to fix it?

Revision history for this message
Peter Levi (peterlevi) wrote :

No fix for this yet, it needs to be fixed upstream. Please register yourself as affected by these bugs:

https://bugs.launchpad.net/ubuntu/+source/libappindicator/+bug/1071738
https://bugs.launchpad.net/indicator-application/+bug/1075152

Revision history for this message
Peter Levi (peterlevi) wrote :

The problem seems to be with the Python GTK bindings, so I reported the bug on Gnome's bugzilla for the pygobject product:
https://bugzilla.gnome.org/show_bug.cgi?id=732470

Revision history for this message
AC (awc2k) wrote : Re: [Bug 1071598] Re: Indicator icon misreports scroll down event as scroll up

Thank you for the response.

On June 30, 2014 6:25:49 AM Peter Levi <email address hidden> wrote:

> The problem seems to be with the Python GTK bindings, so I reported the bug
> on Gnome's bugzilla for the pygobject product:
> https://bugzilla.gnome.org/show_bug.cgi?id=732470
>
> ** Bug watch added: GNOME Bug Tracker #732470
> https://bugzilla.gnome.org/show_bug.cgi?id=732470
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1267674).
> https://bugs.launchpad.net/bugs/1071598
>
> Title:
> Indicator icon misreports scroll down event as scroll up
>
> Status in Variety wallpaper changer:
> Confirmed
>
> Bug description:
> When scrolling on the indicator icon, only scroll-up events are registered.
> Scroll-down events will be reported as scroll-up instead, which makes it
> impossible
> to go to the next wallpaper.
>
> I believe this is a bug in the unity API, but I'm not sure.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/variety/+bug/1071598/+subscriptions

Revision history for this message
henczati (henczati) wrote :

+1 on Lubuntu/LXDE.
Reported to the other 3 mentioned bugreports, too.

Variety Version: 0.4.20
Desktop Environment: LXDE
OS: Lubuntu 14.04 amd64

$ apt-cache policy gir1.2-appindicator3-0.1 indicator-application indicator-application-gtk2 libappindicator1 libappindicator3-1 libindicator3-7 libindicator7 lxpanel-indicator-applet-plugin | sed '/^[^ ]/ {n;p}; d'
gir1.2-appindicator3-0.1:
  Installed: 12.10.1+13.10.20130920-0ubuntu4
indicator-application:
  Installed: 12.10.1+14.04.20140407-0ubuntu1
indicator-application-gtk2:
  Installed: 12.10.0.1-0ubuntu2
libappindicator1:
  Installed: 12.10.1+13.10.20130920-0ubuntu4
libappindicator3-1:
  Installed: 12.10.1+13.10.20130920-0ubuntu4
libindicator3-7:
  Installed: 12.10.2+14.04.20140402-0ubuntu1
libindicator7:
  Installed: 12.10.2+14.04.20140402-0ubuntu1
lxpanel-indicator-applet-plugin:
  Installed: 0.6.1-0ubuntu3

Revision history for this message
Ed Bruck (ed-bruck1) wrote :

This also breaks the latest upstream version of Radio Tray.

Revision history for this message
Peter Levi (peterlevi) wrote :

Very good news.

I got in touch with the correct people and a fix for this is already committed and released in the "proposed" repository, I think for Trusty and Utopic. Unsupported Ubuntu releases like 12.10, 13.10, 13.04 will NOT get the fix, so if you are still using them, you now have one more reason to upgrade to 14.04.

Please help verifying that the bugfix works, instructions are in this comment: https://bugs.launchpad.net/ubuntu/+source/libappindicator/+bug/1071738/comments/14

Please make sure you enable the "proposed" repo, upgrade, and comment in that thread with your results by stating your Ubuntu version, desktop environment you tested on, and the version of libappindicator3-1 as reported by "apt-cache show libappindicator3-1". Thanks.

Revision history for this message
Peter Levi (peterlevi) wrote :

Upgrade your Ubuntu, relogin and scroll over Variety's indicator should work well for both previous and next.

Upstream bug was fixed and fix was released for 14.04 and 15.04. I'm not sure about 14.10. Please respond with a comment below whether scrollwheel works or does not on 14.10.

Already unsupported releases (12.10, 13.04, 13.10) do not get the upstream fix.

Changed in variety:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.