SWT System Tray - Linux GTK Gnome Tray icons with “SWT” String on tray

拟墨画扇 提交于 2019-12-06 03:30:25
f4lco

You have a misconception about Gnome 3.x. The system tray is located on the bottom right corner and works fine with the supplied code example. So the "SWT" is located in your application title bar; the menu shown is the application menu with a quit menu item inserted by default.

Your screenshot shows the upper left corner of the desktop. "SWT" is a default fallback value of applications created with SWT. Whilst testing I was suprised that it doesn't correspond to the title of the (active) window. I suppose this is a bug. Technical details on how the application title is determined can be found in this question (Python and PyGTK; some external references): How to set application title in Gnome Shell?

I managed to change the application name, thus the text I see in KDE's Systray, by using:

Display.setAppName("Whatever");

Just above all SWT code.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!