jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=39166d3fbb3ed53b5f756458f2d08a918289dfea

commit 39166d3fbb3ed53b5f756458f2d08a918289dfea
Author: Jean-Philippe Andre <[email protected]>
Date:   Mon Aug 8 20:40:41 2016 +0900

    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);
             }
          }

-- 


Reply via email to