spinner: add label format validator
authorShilpa Singh <shilpa.singh@samsung.com>
Fri, 19 Feb 2016 23:56:31 +0000 (15:56 -0800)
committerCedric BAIL <cedric@osg.samsung.com>
Mon, 29 Feb 2016 23:40:06 +0000 (15:40 -0800)
commit2182918ed35bd52ed2ae10df776c2d8f5a6d2723
tree033a65f21853a5c4dd4fb5801e5971d63d3d1a65
parent9316ab5bf209f75971aebba32f0bc484ef5483c4
spinner: add label format validator

Summary:
Check for all error conditions case in elm_spinner_label_format_set
and set label format only if its valid.

Signed-off-by: Shilpa Singh <shilpa.singh@samsung.com>
@feature

Test Plan:
1. Launch elementary test spinner
2. Set invalid formats e.g. formats with out %, formats with more than
one format specifier "%d %s" etc:-

Reviewers: jpeg, cedric

Reviewed By: cedric

Subscribers: govi, buds, subodh6129

Differential Revision: https://phab.enlightenment.org/D3720

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
legacy/elementary/src/lib/elm_spinner.c