Bug 64600 - loadIcon( "iconname", KIcon::Panel, 22 ) returns "unknown" icon even if 22x22 icon exists
Summary: loadIcon( "iconname", KIcon::Panel, 22 ) returns "unknown" icon even if 22x22...
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR major
Target Milestone: ---
Assignee: Antonio Larrosa
URL:
Keywords:
: 68063 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-09-20 17:14 UTC by Ingo Klöcker
Modified: 2003-11-13 13:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ingo Klöcker 2003-09-20 17:14:49 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc version 3.3 20030226 (prerelease) (SuSE Linux) 
OS:          Linux

In KSystemTray::loadIcon( iconname ) the following code is used:
iconLoader()->loadIcon( iconname, KIcon::Panel, iconWidth );
where iconWidth is (by default) 22. This new (since 3.2) method is now used in a lot of applications which would be a good thing if it worked. But it doesn't work. A few days ago I rebuilt KDE HEAD from scratch. Since then the KSirc system tray icons are not displayed anymore. But the icons are definitely installed, e.g. $KDEDIR/share/apps/ksirc/icons/crystalsvg/22x22/actions/ksirc_dock.png.

Since I also want to install an applet icon for KMail I created a 22x22 icon and installed it with the same effect as for KSirc. The icon wasn't shown in the system tray. Then I tried something crazy. I created a 32x32 icon and installed it. And, believe it or not, now the 22x22 icon is shown in the system tray.

So either the author of KSystemTray::loadIcon did something wrong (maybe he shouldn't have used KIcon::Panel ???) or KIconLoader::loadIcon is broken.
Comment 1 Stephan Kulow 2003-11-11 10:27:10 UTC
wasn't that fixed?
Comment 2 Ingo Klöcker 2003-11-12 00:03:07 UTC
Seems to work now.
Comment 3 Stephan Kulow 2003-11-13 13:47:12 UTC
*** Bug 68063 has been marked as a duplicate of this bug. ***