From 43ea0cb226bcc78154730b6f178bcc34ef355def Mon Sep 17 00:00:00 2001 From: Hyoyoung Chang Date: Fri, 18 May 2012 16:56:24 +0900 Subject: [PATCH] [genlist] add multisense sound feature Change-Id: I391be5bbb8026d9bde4e3baa8c26c555c4376db4 --- themes/widgets/genlist/genlist_macro.edc | 9 +++++++++ themes/widgets/genlist/genlist_normal.edc | 10 ++++++++++ 2 files changed, 19 insertions(+) diff --git a/themes/widgets/genlist/genlist_macro.edc b/themes/widgets/genlist/genlist_macro.edc index 36bf9ea..0c5093f 100644 --- a/themes/widgets/genlist/genlist_macro.edc +++ b/themes/widgets/genlist/genlist_macro.edc @@ -847,3 +847,12 @@ target: "elm.flip.content"; \ } +/* genlist multisense macro - start */ +#define GENLIST_PROGRAM_AFTER_PLAY_BUTTON_PRESS \ + after: "play_button_press"; + +#define GENLIST_PROGRAM_PLAY_BUTTON_PRESS \ + program { name: "play_button_press"; \ + action: PLAY_SAMPLE "button-pressed" 1.0; \ + } +/* genlist multisense macro - end */ diff --git a/themes/widgets/genlist/genlist_normal.edc b/themes/widgets/genlist/genlist_normal.edc index a08b5fd..003b7a4 100644 --- a/themes/widgets/genlist/genlist_normal.edc +++ b/themes/widgets/genlist/genlist_normal.edc @@ -19,6 +19,14 @@ * vim:ts=3 */ +/* genlist multisense sample/tone listing */ + sounds { + sample { + name: "button-pressed" RAW; + source: "button-pressed.wav"; + } + } + group { name: "elm/list/item/matchlist"; alias: "elm/list/item_odd/matchlist"; alias: "elm/list/item_compress/matchlist"; @@ -383,6 +391,7 @@ source: "elm"; action: STATE_SET "selected" 0.0; GENLIST_PROGRAM_SCRIPT_FLIP_SELECT_1TEXT + GENLIST_PROGRAM_AFTER_PLAY_BUTTON_PRESS } program { name: "go_passive"; signal: "elm,state,unselected"; @@ -405,6 +414,7 @@ target: "disclip"; } GENLIST_PROGRAM_FLIP_1TEXT + GENLIST_PROGRAM_PLAY_BUTTON_PRESS } } -- 2.7.4