Sanitize 'Ignore client supplied icon' logic
commitfd7b1173461c0764db1cedc3c6602d68cb7a627e
authorRodolfo García Peñas (kix) <kix@kix.es>
Thu, 24 Jan 2013 23:59:08 +0000 (25 00:59 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 26 Jan 2013 18:19:01 +0000 (26 18:19 +0000)
treeb1d56741345664fb62d081e88ce728d11928700e
parentada7161d8d3ab0250eb766b51f42247c0dc75999
Sanitize 'Ignore client supplied icon' logic

There can be these 4 situations:

1. ignore flag + file set
2. no ignore flag + file set
3. ignore flag + no file set
4. no ignore flag + no file set

If the "ignore client supplied icon flag" is not set it means the user wants to use the client-provided icon,
so the eventual file name which might be in the entry field is ignored.

If the user sets the ignore flag and sets the icon name all is fine and Option 1 is done.

If the user tries to set an icon (ignore flag is set) but the file textbox is not set we show the
warning:

"Ignore client supplied icon is set, but icon filename textbox is empty. Using client supplied icon"

and use the client-supplied icon instead.
src/winspector.c