Bug 85833 - icons of systemtray have huge gaps inbetween
Summary: icons of systemtray have huge gaps inbetween
Status: RESOLVED WORKSFORME
Alias: None
Product: kicker
Classification: Plasma
Component: systemtray (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Aaron J. Seigo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-24 04:40 UTC by Andreas Nuesslein
Modified: 2005-03-06 03:19 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Before adding the "breaking" systray icon (9.63 KB, image/png)
2004-08-17 15:59 UTC, John T. Ellis
Details
After adding the "breaking" icon (11.66 KB, image/png)
2004-08-17 16:00 UTC, John T. Ellis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Nuesslein 2004-07-24 04:40:50 UTC
Version:           unknown (using KDE 3.2.92 (3.3 beta2), compiled sources)
Compiler:          gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)
OS:                Linux (i686) release 2.6.3-7mdk

as  soon as i load another program which has a systray icon, or i close such an application the systray expands and leaves gaps (as big as 2 icons next to each other) between the actual icons. even if i close the systray and reopen it this bug will stay.
also closing some more of those apps won't help.

but: if i open another systray (to make it easy i call it: sys2) it won't show anything until i close sys1. a few icons from sys1 are now visible in sys2 in a good arrangement, not all though. and even new opened programs wont show icons in sys2.
Comment 1 Dirk Pritsch 2004-07-30 06:38:20 UTC
Though I didn't play around with other systrays, I can at least confirm the gaps between the icons. With 7 icons my systray occupies more than half of my panel.
This is on a Debian Sid system with KDE 3.2.92 installed from Debian/unstable.
Comment 2 John T. Ellis 2004-08-16 19:50:37 UTC
Ditto with SuSE 9.1's binaries for KDE 3.3
Comment 3 John T. Ellis 2004-08-16 19:53:31 UTC
For an easy-to-replicate (for me, at least) example, try the system tray icon demo from https://jdic.dev.java.net/documentation/incubator/tray/index.html
Comment 4 Aaron J. Seigo 2004-08-17 10:28:31 UTC
are some of these systray icons wider than others? e.g. while most systray icons tend to be 22x22, some may be much wider e.g. 22x44 ... previously the systray would simply cut these off at 22x22, but now it grants them enough space. unfortunately, it keeps all the columns equally wide. though once removed, the column widths should return to smaller widths. can anyone attach screenshots of this problem in action? thanks...
Comment 5 John T. Ellis 2004-08-17 15:59:22 UTC
Created attachment 7143 [details]
Before adding the "breaking" systray icon

What the systray looks like before adding the offending icon
Comment 6 John T. Ellis 2004-08-17 16:00:16 UTC
Created attachment 7144 [details]
After adding the "breaking" icon

After adding the offending icon
Comment 7 John T. Ellis 2004-08-17 16:03:31 UTC
It appears this might be a problem with the freedesktop.org system tray spec implementation. I've tried sizes of 8x8 to 24x24, all causing the same problems. And while the icon sizes change, the space it occupies remains the same (the left over space is just filled with a white background).
Comment 8 John T. Ellis 2004-08-17 16:21:42 UTC
On closer inspection you're right. I think it's unexpected behavior for some of us since systray didn't resize icons before, but I re-hacked the freedesktop systray implementation I was using the have XSizeHints of min_width by min_height to 22x22 and things size correctly.

Looks like our implementations just need to be sure and fetch the size of the image icon and set or XSizeHints based on that instead of statically assigning them. I'd recommend closing the bug out (if the submitter agrees) as INVALID since the problem appears to be that everyone's app just needs to obey the correct conventions.
Comment 9 Matteo Settenvini 2004-08-24 15:06:05 UTC
"Looks like our implementations just need to be sure and fetch the size of the image icon and set or XSizeHints based on that instead of statically assigning them."

Er... I'm not a native english speaker, so can someone explain this sentence to me?
The implementation needs to be sure? "Set" what?
I would like to understand where the problem is so I can fix my program accordingly.
Comment 10 Andreas Nuesslein 2004-09-10 16:45:18 UTC
sorry .. i wasn't online for a long time.
ehm.. yeah i dont really get what he said either - but i didnt get this bug in the 3.3 final anymore. so Matteo, i think u also should just install the new version (you probably did that already).
Comment 11 Matteo Settenvini 2004-09-10 18:57:23 UTC
Sorry, I still see this on 3.3 final. It is probably a problem on the side of other applications (not kde). But I would like to understand what should change in them.

If you want an example, try using ed2k-gtk-gui with systray icon.
Anyway, you did well to close this bug, since it's not a kde problem.
Comment 12 Andreas Nuesslein 2004-09-10 20:00:12 UTC
i didn't get the bug anymore eventhough i was using ed2k too.
right now i'm using mdk10.1rc1 (Which has kde3.2.3)  and i dont really want to 
recompile 3.3 since it's a huge procedure and i'm going to reinstall mdk10.1 
final anyway! so i wont retry 3.3 until mandrake has it's final10.1.
so if i get the bug again when i'm installing 3.3. i'll tell ya.
sorry i cant help ya right now. i just can tell ya that it worked for me even 
i used ed2k too

Am Freitag, 10. September 2004 18:57 schrieb Matteo Settenvini:
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
> http://bugs.kde.org/show_bug.cgi?id=85833
>
>
>
>
> ------- Additional Comments From msettenvini tin it  2004-09-10 18:57
> ------- Sorry, I still see this on 3.3 final. It is probably a problem on
> the side of other applications (not kde). But I would like to understand
> what should change in them.
>
> If you want an example, try using ed2k-gtk-gui with systray icon.
> Anyway, you did well to close this bug, since it's not a kde problem.

Comment 13 Zach Tibbitts 2005-03-06 02:42:33 UTC
Im having this bug in Slackware 10.1, and it only happens when I open KBear
pics are at http://www.linuxforums.org/forum/topic-35979.html
Comment 14 Aaron J. Seigo 2005-03-06 03:19:17 UTC
Zach: that's a known bug in kbear. not a kicker thing.