Skip to content

Commit

Permalink
new tray icon image for different icon sizes (e.g. linux)
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5216 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
lotus committed Sep 28, 2008
1 parent cc9f1e9 commit 31c31e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file added addon/YaCy_TrayIcon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions source/de/anomic/yacy/yacyTray.java
Expand Up @@ -54,12 +54,12 @@ public final class yacyTray {
public static void init(final plasmaSwitchboard par_sb) {
sb = par_sb;
try {
final boolean trayIcon = sb.getConfig("trayIcon", "false").equals("true");
final boolean trayIcon = sb.getConfigBool("trayIcon", false);
if (trayIcon) {
System.setProperty("java.awt.headless", "false");

if(nativeTrayIcon.isSupported()) {
final String iconpath = sb.getRootPath().toString() + "/addon/YaCy_TrayIcon.gif".replace("/", File.separator);
final String iconpath = sb.getRootPath().toString() + "/addon/YaCy_TrayIcon.png".replace("/", File.separator);
ActionListener al = new ActionListener() {
public void actionPerformed(final ActionEvent e) {
trayClickAction();
Expand Down

0 comments on commit 31c31e5

Please sign in to comment.