← Back to team overview

dx-packages team mailing list archive

[Bug 1075152] Re: Indicator scroll event says direction UP on 12.10 even when scrolling down

 

*** This bug is a duplicate of bug 1071738 ***
    https://bugs.launchpad.net/bugs/1071738

** This bug has been marked a duplicate of bug 1071738
   Indicator scroll event says direction UP on 12.10 even when scrolling down

** Bug watch removed: GNOME Bug Tracker #732470
   https://bugzilla.gnome.org/show_bug.cgi?id=732470

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to indicator-application in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1075152

Title:
  Indicator scroll event says direction UP on 12.10 even when scrolling
  down

Status in Application Indicators:
  Confirmed
Status in “indicator-application” package in Ubuntu:
  Confirmed

Bug description:
  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__":
      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()

To manage notifications about this bug go to:
https://bugs.launchpad.net/indicator-application/+bug/1075152/+subscriptions