Updated readme
This commit is contained in:
parent
e6066371d7
commit
3ccad25dfe
15
README.md
15
README.md
|
@ -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");
|
||||||
|
@ -62,9 +62,9 @@ A *simple* example is as follows:
|
||||||
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
@ -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.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user