Application indicator text not updated with set_label() function

Bug #877455 reported by artjermyn
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xfce4-indicator-plugin (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When using python, the set_label() function will not update the indicator text. You can run the following script and it will not update the indicator text to test 2, but when retrieving the indicator text, it will be test2.

import gtk
import appindicator

class testApp():
 def __init__(self):
  self.ind = appindicator.Indicator('test', 'info', appindicator.CATEGORY_APPLICATION_STATUS)
  self.ind.set_status (appindicator.STATUS_ACTIVE)
  self.ind.set_label('test')

         menu = gtk.Menu()
  self.ind.set_menu(menu)

         item = gtk.MenuItem('change')
         item.connect('activate', self.on_change_clicked)
         item.show()
         menu.append(item)

         item = gtk.MenuItem('quit')
         item.connect('activate', self.on_quit_clicked)
         item.show()
         menu.append(item)

 def on_change_clicked(self, widget):
  self.ind.set_label('test 2')
  print self.ind.get_label()

 def on_quit_clicked(self, widget):
  gtk.main_quit()

if __name__ == "__main__":
    t = testApp()
    gtk.main()

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: xfce4-indicator-plugin 0.3.1-1ubuntu3
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic i686
NonfreeKernelModules: wl
ApportVersion: 1.23-0ubuntu3
Architecture: i386
Date: Tue Oct 18 10:04:14 2011
ExecutablePath: /usr/lib/xfce4-indicator-plugin/xfce4/panel-plugins/xfce4-indicator-plugin
InstallationMedia: Xubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: xfce4-indicator-plugin
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
artjermyn (artjermyn) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xfce4-indicator-plugin (Ubuntu):
status: New → Confirmed
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.