- self.ind = appindicator.Indicator(
- # Custom icon seems to doesn't work on my Ubuntu 12.04 LTS running Unity 2D
- #"Chars", os.path.join(self.SCRIPT_DIR, 'light16x16.png'),
- # So fallback to an referenced theme's icon name
- "Chars", "accessories-character-map",
- appindicator.CATEGORY_APPLICATION_STATUS)
- self.ind.set_status(appindicator.STATUS_ACTIVE)
+ self.ind = AppIndicator3.Indicator.new(
+ "Chars", os.path.join(self.SCRIPT_DIR, 'light16x16.svg'),
+ AppIndicator3.IndicatorCategory.APPLICATION_STATUS)
+ self.ind.set_status(AppIndicator3.IndicatorStatus.ACTIVE)