Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm adding menu items to an appindicator in pygtk. I don't want them to behave like ordinary menu items: I want them to have normal appearance, but not to respond to mouse hovers and mouse clicks. The way I imagine the new sound menu will behave.

In other words, I want to prevent the MenuItem selection that's going on below:

enter image description here

How do I go about doing that? What events should I swallow, or is there a better way?

share|improve this question
up vote 4 down vote accepted

Unfortunately, appindicator doesn't allow adding custom widget, as it requires GObject introspection. This will be available when ido package will have GObject instrospection.

Bug report

share|improve this answer
I've been able to add alignments, labels, and images; as well as listen for (some) signals on those items. – Erigami Feb 18 '11 at 16:57

What I've done for StackApplet is to simply disable a menu item and use that as a 'header'. That way it doesn't respond to mouse clicks and looks like a static text label.

enter image description here

share|improve this answer

Your Answer


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.