← Back to team overview

dx-packages team mailing list archive

[Bug 1337620] Re: Application indicator icon only changes after mouse click

 

FWIW, attached is a workaround.  Simply put, I alternate the name of the
icon which is written out (appending a 1 or 2 depending on each
alternate) and that fools the set_icon method to update the
icon.?field.comment=FWIW, attached is a workaround.  Simply put, I
alternate the name of the icon which is written out (appending a 1 or 2
depending on each alternate) and that fools the set_icon method to
update the icon.

** Attachment added: "Sample workaround."
   https://bugs.launchpad.net/ubuntu/+source/libappindicator/+bug/1337620/+attachment/4149927/+files/indicator-test-icon.py

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

Title:
  Application indicator icon only changes after mouse click

Status in “libappindicator” package in Ubuntu:
  Confirmed

Bug description:
  I have an application indicator which shows the moon phase/orientation
  as its icon (along with a text label). When the indicator does an
  update (several times per hour), the icon is recreated (as an SVG
  file) and so the icon changes over time.

  Recently, the icon is not showing any change unless I mouse click the
  icon (or label). I'm on Ubuntu 14.04 64 bit and my indicator uses
  Python 3 and Appindicator3.

  I have attached a sample script which is representative of the issue
  and shows an icon which should change every three seconds. The icon
  itself is an SVG file and shows a numerical count, starting from zero
  and increments every three seconds.

  I have tested on Ubuntu 12.04 and Xubuntu 12.04 (via VirtualBox) and
  the icon DOES change on each three second update.

  Testing on Ubuntu 14.04, the icon does NOT change UNLESS I click on
  it. If I change the label text on each update, the icon WILL also
  change, but only if I don't repeat the SAME text for the label.

  FYI: I initially asked this at http://askubuntu.com/questions/490634
  /application-indicator-icon-not-changing-until-clicked but have had no
  response.

  
  Thanks in advance,

  Bernmeister.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libappindicator/+bug/1337620/+subscriptions