WINGs: changed use of 'if' on panel->rgbState into a switch
commit39181154abedb412a55c13402af11d44f083699e
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 17 May 2014 14:43:22 +0000 (17 16:43 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 18 May 2014 22:00:15 +0000 (18 23:00 +0100)
tree0b9e2bdd88d4fce050f47816653ea73fb40d27fe
parent963b4b2b7801d79884001d391b1784d020a23b29
WINGs: changed use of 'if' on panel->rgbState into a switch

This allow compiler to raise a warning in case a new value would be added
to the enum; it also change order in the check so that WMGetButtonSelected
will be called only once, only for the case of interest.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
WINGs/wcolorpanel.c