This question already has an answer here:

enter image description here

What is that called?

The reason I'm asking is that I'm creating a desktop application in Java (using the gnome java library - with GTK support) and I want my app to be visible there as well with a custom menu.

I can't find anything on how to create such a menu for GTK windows.

marked as duplicate by user117103, Eric Carvalho, Fabby, Danatela, Elder Geek Feb 6 '15 at 14:48

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


It's an "Application indicator":

Application indicators provide a simple and effective API to provide an application icon in the notification area in the top-right part of the screen, and provide simple, accessible, and complete access to key parts of your application. With bindings for C, Python, and Mono, you can integrate your app into the Unity desktop quickly and easily.

Source: https://unity.ubuntu.com/projects/appindicators/

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