Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I wrote an application indicator that displays information about my monthly network consumption. I do not want it to have an icon next to the text I display. How do I write an application indicator without an icon?

The code I use to initialize my indicator is:

self.indicator = appindicator.Indicator.new("VooMeter", "network", appindicator.IndicatorCategory.SYSTEM_SERVICES)

Reading the documentation I can not find the value to put instead of "network"

share|improve this question

2 Answers 2

up vote 3 down vote accepted

After some code tries, I couldn't find a way either and reading the docs, I don't think it's possible. Here's something interesting from the label property:

The label will not be shown unless there is an icon as well.

So, if there is a way to disable the icon, it won't even show the label.

share|improve this answer
    
Your right, I wonder what library xfce4-netload-plugin use to show text in the panel without an icon –  danjjl Dec 6 '12 at 9:22
    
Did you progress any further with this? –  Utkarsh Sinha Jan 27 '13 at 9:19
    
Looking at a quick glance, xfce4-netload-plugin doesn't use the Unity appindicator framework. A little hack would be to create an empty or little transparent image and add that. –  Timo Jan 27 '13 at 12:06

I had the same problem. As a workaround I have used one pixel wide transparent image as icon.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.