Public bug reported:

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)

** Affects: xfce4-indicator-plugin (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 oneiric

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/877455

Title:
  Application indicator text not updated with set_label() function

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xfce4-indicator-plugin/+bug/877455/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to