Bug 256356 - kmenuedit does not refresh icon when the file is modified and reloaded
Summary: kmenuedit does not refresh icon when the file is modified and reloaded
Status: RESOLVED INTENTIONAL
Alias: None
Product: kmenuedit
Classification: Applications
Component: general (show other bugs)
Version: 0.7
Platform: Mandriva RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-08 12:05 UTC by Yves Berviller
Modified: 2010-11-08 14:55 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yves Berviller 2010-11-08 12:05:56 UTC
Version:           0.7
OS:                Linux

kmenuedit does not refresh the icon associated with a new element of the menu when the file is modified outside and reloaded. I also tried to associate another icon file and then associate again the initial icon file, but the content was not updated. The only way to reflect the change was to rename the file and reload it.

Reproducible: Always

Steps to Reproduce:
Make a new menu element and associate it with a png file for the icon located in the home directory.
Leave the kmenuedit subwindow opened.
Modify the png file with a graphic editor (tgif for changing the color of the icon in my case).
Click on the kmenuedit subwindow icon to reload again the modified file.

Actual Results:  
The modifications made in the png file are not reflected (ie the icon's color is not changed)

Expected Results:  
The modifications made in the png file should have been reflected

OS: Linux (i686) release 2.6.31.13-desktop-1mnb
Compiler: gcc
Comment 1 Christoph Feck 2010-11-08 14:55:30 UTC
We would have to monitor all icon files for changes to keep the icon caches up-to-date.

Simple workaround: Delete the icon caches, so you force the icons to be reloaded.

See also bug 251288 which I kept open because it only mentioned KDE startup.