Only cache pixmaps for docked icons
commita396f3bd662e36dd464e9b0a8880f960ba5891ec
authorBrad Jorsch <anomie@users.sourceforge.net>
Fri, 8 Oct 2010 19:08:34 +0000 (8 15:08 -0400)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 8 Oct 2010 20:03:31 +0000 (8 22:03 +0200)
tree6e09f03b0ace864779619a369a4f481a4df38f5e
parent125cba8f8297146e8b86147ec12d6bd8a08147e3
Only cache pixmaps for docked icons

There is little point caching a pixmap for an app that isn't in the
dock. This patch creates a function wAppIconSave that saves only if the
app icon is docked, and adds calls to that function in all the places
where an appicon can transition from undocked to docked.

It also "adds" a function wApplicationSaveIconPathFor that saves an icon
path to the configuration plist; the function already existed, it was
just static before.

Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
src/appicon.c
src/appicon.h
src/application.c
src/application.h
src/dock.c