kurnevsky / tktray

Automatically exported from code.google.com/p/tktray
Other
2 stars 2 forks source link

Pixmap gets cropped if tray size is smaller #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce:

1. Configure your tray to a very small size (e.g. 21px)
2. Make sure that the pixmap you want to draw is significantly larger
3. Draw a pixmap on the tray

I would expect the pixmap to get resized and become smaller, but it gets
cropped instead.

Using 1.3.6 on KUbuntu Lucid.

Original issue reported on code.google.com by n.vi...@gmail.com on 11 May 2010 at 7:50

GoogleCodeExporter commented 9 years ago
My suggestion would be to send an event to the application to let it know what 
the 
tray's size is, so for example :
bind .tray_icon <<TraySize>> [list resize_tray_icon %W %H]
So if the app has a better way to deal with the image (resizing it, cropping it 
itself) or if it has multiple image sizes, it can choose the best size that 
fits the 
tray's size.

Original comment by snifikino on 11 May 2010 at 7:54