examples: Fix button theme
authorJean-Philippe Andre <jp.andre@samsung.com>
Mon, 8 Aug 2016 11:40:41 +0000 (20:40 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Mon, 8 Aug 2016 11:41:51 +0000 (20:41 +0900)
A program was not handling the various states properly.

src/examples/elementary/theme_example.edc

index dd19880..e40ce57 100644 (file)
@@ -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);
             }
          }