wrlib: add explicit type definition in API to allow compiler Type Checks (3/3)
commita772f2797d75e4ac7fa7ce6f7fb984db32b63ece
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 14 Jun 2014 17:34:09 +0000 (14 19:34 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 15 Jun 2014 18:45:20 +0000 (15 19:45 +0100)
tree4aa3298d1a321a92b7487b2ee774ae70f74e11a6
parentbc4084e67989e8e58068c49078daf5b2e7c3d56c
wrlib: add explicit type definition in API to allow compiler Type Checks (3/3)

When defining enums as types instead of simple enums allows to use these
types at the places where the corresponding enum values are expected, then
allowing the compiler to check that, potentially reporting incorrect use
of values to the user.

This patch adds the type for the gradient style for RRender*Gradient.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
WPrefs.app/Appearance.c
util/wmsetbg.c
wrlib/gradient.c
wrlib/wraster.h