* fixed a bug causing the systray to hang upon exit on Linux
* various nips and tucks all around
This commit is contained in:
@ -12,20 +12,18 @@ import java.awt.FileDialog;
|
||||
import java.awt.Frame;
|
||||
|
||||
/**
|
||||
* A rather nasty AWT file chooser dialog (thanks, Kaffe!) which allows the user
|
||||
* to select their preferred browser with.
|
||||
* A simple file chooser dialog.
|
||||
*
|
||||
* @author hypercubus
|
||||
*/
|
||||
public class BrowserChooser extends FileDialog {
|
||||
|
||||
public BrowserChooser(Frame owner, String windowTitle) {
|
||||
super(owner, windowTitle);
|
||||
initialize();
|
||||
}
|
||||
public BrowserChooser(Frame owner, String windowTitle) {
|
||||
super(owner, windowTitle);
|
||||
initialize();
|
||||
}
|
||||
|
||||
public void initialize(){
|
||||
this.setSize(300,400);
|
||||
public void initialize(){
|
||||
this.show();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ public class SysTray implements SysTrayMenuListener {
|
||||
private SysTrayMenuItem _itemExit = new SysTrayMenuItem("Exit systray", "exit");
|
||||
private SysTrayMenuItem _itemSelectBrowser = new SysTrayMenuItem("Select preferred browser...", "selectbrowser");
|
||||
private SysTrayMenuIcon _sysTrayMenuIcon = new SysTrayMenuIcon("../icons/iggy");
|
||||
private SysTrayMenu _sysTrayMenu = new SysTrayMenu(_sysTrayMenuIcon, "I2P Console");
|
||||
private SysTrayMenu _sysTrayMenu = new SysTrayMenu(_sysTrayMenuIcon, "I2P Router Console");
|
||||
|
||||
public SysTray() {
|
||||
_sysTrayMenuIcon.addSysTrayMenuListener(this);
|
||||
@ -78,7 +78,9 @@ public class SysTray implements SysTrayMenuListener {
|
||||
_itemExit = null;
|
||||
_itemSelectBrowser = null;
|
||||
_sysTrayMenuIcon = null;
|
||||
_sysTrayMenu = null;
|
||||
_sysTrayMenu = null;
|
||||
_browserChooser = null;
|
||||
_frame = null;
|
||||
System.exit(0);
|
||||
} else if (e.getActionCommand().equals("selectbrowser")) {
|
||||
setBrowser(promptForBrowser("Select preferred browser"));
|
||||
|
@ -1 +1 @@
|
||||
java -cp systray4j.jar;. -Djava.library.path=. SysTray
|
||||
java -cp systray4j.jar;. -Djava.library.path=. -jar systray.jar
|
||||
|
@ -1 +1 @@
|
||||
java -cp systray4j.jar:. -Djava.library.path=. SysTray
|
||||
java -cp systray4j.jar:. -Djava.library.path=. -jar systray.jar
|
||||
|
Reference in New Issue
Block a user