From 39166d3fbb3ed53b5f756458f2d08a918289dfea Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Mon, 8 Aug 2016 20:40:41 +0900 Subject: [PATCH] examples: Fix button theme A program was not handling the various states properly. --- src/examples/elementary/theme_example.edc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/examples/elementary/theme_example.edc b/src/examples/elementary/theme_example.edc index dd19880..e40ce57 100644 --- a/src/examples/elementary/theme_example.edc +++ b/src/examples/elementary/theme_example.edc @@ -167,7 +167,7 @@ collections { get_state(PART:"elm.text", st, 30, vl); if (!strcmp(st, "visible")) set_state(PART:"elm.text", "disabled_visible", 0.0); - else + else if (!strcmp(st, "default")) set_state(PART:"elm.text", "disabled", 0.0); } } @@ -185,7 +185,7 @@ collections { get_state(PART:"elm.text", st, 30, vl); if (!strcmp(st, "disabled_visible")) set_state(PART:"elm.text", "visible", 0.0); - else + else if (!strcmp(st, "disabled")) set_state(PART:"elm.text", "default", 0.0); } } -- 2.7.4