[Genlist] Reset "base" part when item cache is popped.
authorTae-Hwan Kim <the81.kim@samsung.com>
Sun, 28 Jul 2013 04:55:11 +0000 (13:55 +0900)
committerTae-Hwan Kim <the81.kim@samsung.com>
Wed, 31 Jul 2013 13:38:00 +0000 (22:38 +0900)
This can fix sound problem because "base" part can be disabled and sound
also is disabled.

Change-Id: I7eee43a6f49697a889d4da1ad60f6c96d20bbbe1

themes/widgets/genlist/genlist_macro.edc

index fe79d89..87ab159 100755 (executable)
             new Float:vl; \
             get_state(PART:"base", st, 30, vl); \
             if (strcmp(st, "disabled")) \
-               run_program(PROGRAM:"play_button_press"SRC); \
+               play_sample("touch_sound", 1.0); \
          } \
-      } \
-      program { name: "play_button_press"SRC; \
-         action: PLAY_SAMPLE "touch_sound" 1.0; \
       }
 
 #define GENLIST_PROGRAM_REORDER_SOUND( SRC ) \
 #define GENLIST_PROGRAMS_NORMAL( TARGET ) \
    programs { \
       GENLIST_PROGRAM_DEFAULT( TARGET \
+         target: "base"; \
          target: "bg"; \
          target: "bg_clip"; \
          target: "bottom_line"; \
 #define GENLIST_PROGRAMS_DIALOGUE( TARGET ) \
    programs { \
       GENLIST_PROGRAM_DEFAULT( TARGET \
+         target: "base"; \
          target: "bg_dialogue"; \
          target: "elm.padding.left"; \
          target: "elm.padding.right"; \
 
 #define GENLIST_PROGRAMS_ENTRY( TARGET ) \
    GENLIST_PROGRAM_DEFAULT( TARGET \
+      target: "base"; \
       target: "bg"; \
       target: "bg_clip"; \
       target: "bottom_line"; \