[Genlist] Fix sound problem for edit default style
authorTae-Hwan Kim <the81.kim@samsung.com>
Mon, 25 Mar 2013 15:41:55 +0000 (00:41 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Thu, 28 Mar 2013 03:57:56 +0000 (12:57 +0900)
Change-Id: Ie96afe979f7c49f57884d843a5c86cf1da351d16

themes/widgets/genlist/genlist_decorate.edc
themes/widgets/genlist/genlist_macro.edc

index c520c58..1bcb71c 100644 (file)
          )
          GENLIST_PART_BOTTOM_LINE
 
+         GENLIST_PART_RECT("sound_left",
+            description { state: "default" 0.0;
+              color: 128 0 0 128;
+              rel2.to_x: "elm.swallow.decorate.content";
+              rel2.relative: 0 1;
+            }
+         )
+         GENLIST_PART_RECT("sound_right",
+            description { state: "default" 0.0;
+              color: 128 0 0 128;
+              rel1.to_x: "elm.swallow.decorate.content";
+              rel1.relative: 1 0;
+            }
+         )
          GENLIST_PART_ICON("elm.edit.icon.1",
             GENLIST_DESCRIPTION_L("elm.padding.left",
                align: 1 0.5;
             target: "bottom_line";
             target: "bottom_line2";
          )
+         // FIXME: GENLIST_PROGRAM_SOUND("base") makes duplicated clicked sounds because
+         // swallowed edje also makes sound.
+         // I don't know why "base" part can receive "mouse,clicked,1" events
+         // even though it is below the "elm.swallow.decorate.content" and events should
+         // not be repeated!!!!!!!!
+         GENLIST_PROGRAM_SOUND("sound_left")
+         GENLIST_PROGRAM_SOUND("sound_right")
+         GENLIST_PROGRAM_CHECK("elm.edit.icon.1")
          GENLIST_PROGRAM_REORDER(
            target: "bg_clip";
            target: "bottom_line_clip";
index 8530da3..01658d1 100755 (executable)
 
 // If check is swallowed, genlist selected/unselected should be synched with check.
 #define GENLIST_PROGRAM_CHECK(CHECK) \
-         program { name: "selected_check"; \
+         program { name: "selected"CHECK; \
             signal: "mouse,down,1"; \
             source: CHECK; \
             script { \
                   run_program(PROGRAM:"selected"); \
             } \
          } \
-         program { name: "unselected_check"; \
+         program { name: "unselected"CHECK; \
             signal: "mouse,up,1"; \
             source: CHECK; \
             script { \