efreet_icon: Fix wrong inherit selection
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>
Sat, 21 Nov 2015 14:17:47 +0000 (15:17 +0100)
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>
Wed, 25 Nov 2015 08:35:07 +0000 (09:35 +0100)
commit7b9bb510b4a6d00e33e9fd897810f950c64752ba
tree4913ce7d4f5d34fc2f778c0e267b2e102233db6f
parent8ccea8233c144f723470da09a01487484c269440
efreet_icon: Fix wrong inherit selection

Summary:
The list of elem->paths is given with the actual icon at position 0 and
the bigger the index is the lower the icon in the inherit structure is.

Due to the for loop beginning at 0 walking to the end this
direction is flipped. So the last r is returned, which is the lowest
icon in the inherit structure.

This is fixed by returning if the first valid path is found.

@fix

Test Plan: run jesus or efm with a custom icon theme beore the wrong icons are taken, now the correct ones are taken

Reviewers: raster, cedric

Subscribers: DaveMDS

Differential Revision: https://phab.enlightenment.org/D3366
src/lib/efreet/efreet_icon.c