how to manipulate Gnome's "Top Bar"/"Activities Bar"/"Top Panel" using GDK
I am using Linux and Gnome. Using GDK, I would like to programmatically manipulate the Top Bar (i.e., the bar at the top of the screen with "Activities", the time, etc.). Here is a picture of it:
I have been unable to find any information online. I have also tried using wnck, but I don't think the Top Bar is accessible through wnck.
If it isn't possible with GDK, then is it possible with another library such as GTK or X11?
1 answer
That bar is part of GNOME Shell, and user applications don't get to mess around with the shell. You need to look into writing shell extensions to modify that in a general way.
One common thing for an application to want is to show a status icon, in which case you could use an extension like this one and use any of the supported AppIndicator-like standards in your user application. Unfortunately, if you're developing an application for others to use, there's no way for you to force such icons to appear in the shell without your users installing an extension like the linked one. If you require native support without an extension, you'll have to settle for a GNotification, which won't appear in the bar.
1 comment thread