I'm adding menu items to an appindicator. 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.
How do I go about doing that? Trying to grab the events before gtk gets to them feels brittle - it feels like there should be a better way.
(sorry, not enough rep to add a comment to @chavaone answer)
As mentioned in the answer, create the menu item but just don't connect it to any handler code.
For example in my Ubuntu appindicator
indicator-lunar
, found here I have mostly menu items which are display text and do nothing when clicked.