Updated readme

This commit is contained in:
nathan 2015-11-09 16:20:59 +01:00
parent e6066371d7
commit 3ccad25dfe

View File

@ -49,7 +49,7 @@ SystemTray.ICON_PATH (type String, default value '')
A *simple* example is as follows: The test application is under text, and a *simple* example is as follows:
// if using provided JNA jars. Not necessary if // if using provided JNA jars. Not necessary if
//using JNA from https://github.com/twall/jna //using JNA from https://github.com/twall/jna
System.load("Path to OS specific JNA jar"); System.load("Path to OS specific JNA jar");
@ -61,12 +61,12 @@ A *simple* example is as follows:
this.systemTray.setStatus("Not Running", "grey_icon.png"); this.systemTray.setStatus("Not Running", "grey_icon.png");
this.systemTray.addMenuEntry("Quit", new SystemTrayMenuAction() { this.systemTray.addMenuEntry("Quit", new SystemTrayMenuAction() {
@Override @Override
public void onClick(SystemTray systemTray) { public
systemTray.removeTray(); void onClick(final SystemTray systemTray, final MenuEntry menuEntry) {
// exit or something. System.exit(0);
} }
}); });
``` ```
``` ```
Note: This library does NOT use SWT for system-tray support, only for the purpose Note: This library does NOT use SWT for system-tray support, only for the purpose
@ -85,7 +85,7 @@ Note: This project was heavily influenced by the excellent Lantern project,
https://github.com/getlantern/lantern https://github.com/getlantern/lantern
``` ```
``` ```
Note: Gnome-shell users will experience an extension install to also support this Note: Gnome-shell users will experience an extension install to support this
functionality. Additionally, a shell restart is necessary for the extension functionality. Additionally, a shell restart is necessary for the extension
to be registered by the shell. You can disable the restart behavior if you like, to be registered by the shell. You can disable the restart behavior if you like,
and the 'system tray' functionality will be picked up on log out/in, or a and the 'system tray' functionality will be picked up on log out/in, or a
@ -93,5 +93,10 @@ Note: Gnome-shell users will experience an extension install to also support thi
Also, screw you gnome-project leads, for making it such a pain-in-the-ass Also, screw you gnome-project leads, for making it such a pain-in-the-ass
to do something so incredibly simple and basic. to do something so incredibly simple and basic.
Note: Some desktop environments might use a dated version of libappindicator, when
icon support in menus was removed, then put back. This happened in version 3.
This library will try to load a GTK indicator instead when it can, or will try
to load libappindicator1 first. Thank you RedHat for putting it back.
``` ```