[button] Fixed naviframe/toolbar button text disappers.
authorAmit Kamboj <amit.kamboj@samsung.com>
Wed, 5 Jun 2013 09:32:08 +0000 (15:02 +0530)
committerSungho Kwak <sungho1.kwak@samsung.com>
Wed, 12 Jun 2013 11:38:13 +0000 (20:38 +0900)
Change-Id: I09fa43a98a9baa58be2cc31358b9d3c7cbaca543

themes/widgets/button.edc

index 090c1cd..13948e2 100644 (file)
@@ -4823,18 +4823,18 @@ BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png")
                if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
                  {
                     get_state(PART:"elm.text", st, 30, vl);
-                    if (!strcmp(st, "landscape_disabled_visible"))
-                      set_state(PART:"elm.text", "landscape_visible", 0.0);
-                    else
+                    if (!strcmp(st, "landscape_disabled"))
                       set_state(PART:"elm.text", "landscape", 0.0);
+                    else
+                      set_state(PART:"elm.text", "landscape_visible", 0.0);
                  }
                else
                  {
                     get_state(PART:"elm.text", st, 30, vl);
-                    if (!strcmp(st, "disabled_visible"))
-                      set_state(PART:"elm.text", "visible", 0.0);
-                    else
+                    if (!strcmp(st, "disabled"))
                       set_state(PART:"elm.text", "default", 0.0);
+                    else
+                      set_state(PART:"elm.text", "visible", 0.0);
                  }
                set_int(button_state, BUTTON_STATE_ENABLED);
             }