I am using AppIndicator via Python. On Ubuntu 12.10 (stock install, python-appindicator: Installed: 12.10.0-0ubuntu1) when I listen for scroll event signals, the direction is always reported as UP, never as DOWN - even when scrolling down. This was working on 12.04.
I am using AppIndicator via Python. On Ubuntu 12.10 (stock install, python- appindicator: Installed: 12.10.0-0ubuntu1) when I listen for scroll event signals, the direction is always reported as UP, never as DOWN - even when scrolling down. This was working on 12.04.
My application variety depends on this functionality, here is the relevant bug report for it: https:/ /bugs.launchpad .net/variety/ +bug/1071598
Here is sample code to demonstrate the problem (OK on 12.04, buggy on 12.10):
from gi.repository import Gtk, Gdk, AppIndicator3
if __name__ == "__main__": "Quit") connect( "activate" , Gtk.main_quit) append( quit)
menu = Gtk.Menu()
quit = Gtk.MenuItem(
quit.
menu.
menu.show_all()
def scroll(ind, steps, direction): tion.UP:
print steps, direction
if direction != Gdk.ScrollDirec
print "Things seem ok"
indicator = AppIndicator3. Indicator. new('testscroll ', '', AppIndicator3. IndicatorCatego ry.APPLICATION_ STATUS) set_status( AppIndicator3. IndicatorStatus .ACTIVE) set_icon( "/usr/share/ pixmaps/ firefox. png") connect( "scroll- event", scroll) set_menu( menu)
indicator.
indicator.
indicator.
indicator.
Gtk.main()