GNOME Bugzilla – Bug 694968
GtkIconTheme: fix failed assertion when asynchrnously loading emblemed icons
Last modified: 2013-03-04 15:30:13 UTC
If you tried to lookup an icon that was not emblemed, and then looked up an emblemed icon with the same base, we would override the iconinfo adding the emblems inline. Later, when the icon finished rendering, inside gtk_icon_info_load_icon_finish, we would copy the result from the duplicate (which did not include the emblem infos), but the icon would still fail the assertion, because emblems infos are present but emblem_applied is false (they were not requested in the first place!). Solve this by avoiding the overwrite on a cached iconinfo, and instead duplicate the iconinfo before adding the emblems. It is expected that another layer of caching (such as StTextureCache in gnome-shell) will take care of avoiding multiple rendering of the same icon+emblem combination.
Created attachment 237762 [details] [review] GtkIconTheme: fix failed assertion when asynchrnously loading emblemed icons
*** Bug 695059 has been marked as a duplicate of this bug. ***
Review of attachment 237762 [details] [review]: Looks good to me
Attachment 237762 [details] pushed as 0db32f0 - GtkIconTheme: fix failed assertion when asynchrnously loading emblemed icons