[Libreoffice] Remove duplicate placeholder icons

Joachim joachim.tremouroux at gmail.com
Wed Dec 8 10:34:18 PST 2010


Hi,

The attached patch implements in the ImageList class a fallback to load 
a default icon if no one is found.

I have performed the following tests:

1st test I have done is adding the 'About Libre Office' entry to the 
standard toolbar, using an existing icon.
in ~/.libreoffice/.../lc_imagelist.xml there is the following entry:
<image:entry image:bitmap-index="0" image:command=".uno:About"/>
I replace .uno:About by .uno:AboutFoo, I restart soffice and the default 
icon is now loaded for the About button :-)


2nd test is removing from images.zip all the icons except the default one...
Find attached a screenshot of the result.
All buttons are now displayed with the default icon.


Regards,
Joachim.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: load_default_icon.patch
Type: text/x-patch
Size: 10394 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20101208/380ae984/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot_no_icon.png
Type: image/png
Size: 76644 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20101208/380ae984/attachment-0001.png>


More information about the LibreOffice mailing list