Discussion:
[gui-dev] [limewire jira] Created: (GUI-17) Tray icon is blank (workaround included)
j***@limewire.org
2005-03-22 19:12:31 UTC
Permalink
DO NOT REPLY TO THIS EMAIL.
PLEASE POST YOUR COMMENTS THROUGH THE WEB INTERFACE AT
http://www.limewire.org/jira/browse/GUI-17
ANY REPLY MADE TO THIS MESSAGE WILL BE DISCARDED.


The following issue has been created:


Here is an overview of the issue:
---------------------------------------------------------------------
Key: GUI-17
Summary: Tray icon is blank (workaround included)
Type: Bug

Status: Open
Priority: Minor

Project: gui
Versions:
4.8.1

Assignee: Sam Berlin
Reporter:

Created: Tue, 22 Mar 2005 2:11 PM
Updated: Tue, 22 Mar 2005 2:11 PM
Environment: Linux 2.6.11.5
KDE 3.4.0
Java J2SE 1.5.0_02
LimeWire 4.8.1

Description:
When clicking the close box of the LimeWire GUI, or selecting File->Close from the top menu area, the LimeWire GUI correctly disappears. A space in the icon tray is created, but no icon is displayed. The LimeWire tray menu (right-click) functions fine.

An exception is thrown, which I will cut-and-paste into this report below. The problem is that the "limeicon.gif" file is not being found, so a blank icon is being drawn.

I do have a workaround. In my /usr/local/LimeWire/ directory, if I create the full path to the icon -- com/limegroup/gnutella/gui/images/limeicon.gif -- then the icon DOES display correctly.

The LimeWire.jar file contains this icon, with the proper path, but for some reason, it does not load correctly. It only loads if the icon is found by creating the aforementioned directory hierarchy within the /usr/local/LimeWire/ directory.

The exception that is thrown is the standard exception that gets thrown when no ImageIcon is loaded as the trayicon. Here is the exception:

java.lang.IllegalArgumentException: Width (-1) and height (-1) cannot be <= 0
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999)
at sun.awt.X11GraphicsConfig.createAcceleratedImage(X11GraphicsConfig.java:391)
at sun.awt.X11.XComponentPeer.createImage(XComponentPeer.java:800)
at java.awt.Component.createImage(Component.java:2978)
at java.awt.Component.createImage(Component.java:2975)
at org.jdesktop.jdic.tray.internal.impl.GnomeTrayIconService$IconPanel.paintComponent(Unknown Source)
at javax.swing.JComponent.paint(JComponent.java:1003)
at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)
at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
at java.awt.Container.paint(Container.java:1709)
at sun.awt.RepaintArea.paintComponent(RepaintArea.java:248)
at sun.awt.X11.XRepaintArea.paintComponent(XRepaintArea.java:56)
at sun.awt.RepaintArea.paint(RepaintArea.java:224)
at sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:632)
at java.awt.Component.dispatchEventImpl(Component.java:4031)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Window.dispatchEventImpl(Window.java:1766)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)


Hopefully this helps to track down the problem. It is nice to have the tray icon behavior on Linux, bringing the Linux client closer to the Windows client in look-and-feel.


View the issue:
http://www.limewire.org/jira/browse/GUI-17

---------------------------------------------------------------------
This message was generated by JIRA, LimeWire.org's issue tracking system.

If you think it was sent incorrectly contact one of the administrators:
http://www.limewire.org/jira/secure/Administrators.jspa
j***@limewire.org
2005-03-22 19:20:31 UTC
Permalink
DO NOT REPLY TO THIS EMAIL.
PLEASE POST YOUR COMMENTS THROUGH THE WEB INTERFACE AT
http://www.limewire.org/jira/browse/GUI-17
ANY REPLY MADE TO THIS MESSAGE WILL BE DISCARDED.


The following issue has been closed:

Resolver: Zlatin Balevsky
Date: Tue, 22 Mar 2005 2:20 PM

This issue is fixed in the current CVS and will be available in one of our next releases.

---------------------------------------------------------------------
View the issue:
http://www.limewire.org/jira/browse/GUI-17

---------------------------------------------------------------------
This message was generated by JIRA, LimeWire.org's issue tracking system.

If you think it was sent incorrectly contact one of the administrators:
http://www.limewire.org/jira/secure/Administrators.jspa

Loading...